View Full Version : code optimizers?

10-23-2003, 10:05 PM
Hello all,

Wondering about code optimization; Are there any online scripts or software that optimize javascript? Some of my files are big, and I want to do more than remove white space and tab characters.

Would it be crazy to make something like this in JS? If so, I'm game if you are!


10-23-2003, 11:14 PM
depends what you mean by crazy.

some can be off good use e.g. they remove all comments (this means you need to keep a commeted copy). So if oyu have large comments it may be of use.

If you have extremely large files it may be beneficial to maybe rethink your method and look at loops and other external javascript files to include in part of your script.


10-24-2003, 01:40 AM
The question is what you want to optimise for:
- Loading time (reduce size, use mod_gzip)
- Running speed (increase efficiency, limit workload, use temporary storage)
- Memory usage (destructible items, closures, temporary variables)
or.... [drumroll]
- Debuggability (increase verboseness, code points, comments)

I'd say the running speed is pretty often the best thing to optimise for, though loading speed is always something, too.

10-24-2003, 04:34 AM
read this article: