I am trying to improve the performance of an embedded app that uses
javascript. Our javascript functions are quite long, and (for ease of
maintenance) quite verbose.
We already do things like inline the javascript and css to minimize load
times. Profiling indicates that the next best way to improve
performance is to reduce the time for javascript parsing.
I am looking for a php script that could pre-process the javascript to
reduce all long variable names to one or two letters, take out extra
spaces, comments, etc and otherwise reduce the javascript to the barest
minimum necessary to run.
Any suggestions?
--Yan
javascript. Our javascript functions are quite long, and (for ease of
maintenance) quite verbose.
We already do things like inline the javascript and css to minimize load
times. Profiling indicates that the next best way to improve
performance is to reduce the time for javascript parsing.
I am looking for a php script that could pre-process the javascript to
reduce all long variable names to one or two letters, take out extra
spaces, comments, etc and otherwise reduce the javascript to the barest
minimum necessary to run.
Any suggestions?
--Yan
Comment