Skip intro and go straight to the Compressor Tool!
This online compressor tool is a cut down version of the one I wrote for use on my own sites. Whereas there are other good compression tools out there I required one that had customised features to remove and add certain functions and other custom features such as keeping custom comments and removing debug statements. You can read more about the reasons for its creation on this blog article..
Unlike some of the other online compressor tools this version allows you to specify a list of function and objects that you can replace with minified versions. This allows you to reduce the size of commonly referenced functions and objects by specifing small names for them e.g replace addEvent with A. You can also insert a get function to replace calls to document.getElementById and also minify some global object references.
The best compression with this tool so far had a reduction of 72.29%
The details of this compression were:
Original Size: 24.41 KB Compressed Size: 6.76 KB Reduced by: 17.64 KB Compression Ratio: 72.29%




