Javascript Compressor
Javascript compressors, or packers, are tools that compress the javascript file, saving bandwidth. There are several tools that can do this.We will try to show some of them.
For tests i used mootools v1.11 downloaded full, with no compression.
Highest compression level is with “high ascii” setting, “fast decode” unchecked and obtained a 0.224 compression. It uses Dean Edwards algorithm.
Creativyst® CSS & JavaScript Compressor (v2.2c)
This script runs in your browser. Obtained a 51.1% level of compression.
This will ask you to upload the js script and will return a compressed version.
0.39 level.
Set on agressive mode, will compress the test file to 40.4%.
jscrush - Online JavaScript compressor
jscrush make use of Andrea Giammarchi’s JavaScript Compressor class and Er. Rochak Chauhan’s Create ZIP File class.
We had a 41.9 level of compression.
This script is able to pack pack and combine more scripts in one file, so it saves the number of connections between browser and server.
This seems to be the winner.
It compress the file with 83.3%.
You have to set the charset to “ISO-8859-1″ or yous script will not work.
Let us know if we missed tools.
4 Comments
PlugIM.com on February 2nd, 2008
Javascript compressors resources…
Javascript compressors, or packers, are tools that compress the javascript file, saving bandwidth….
Skylog » Blog Archive » links for 2008-02-05 on February 5th, 2008
[...] Javascript Compressor (tags: javascript) [...]
Pat on August 2nd, 2008
An alternative with better compression than Packer or JSNin
is Javascript Utility V2 at http://jsutility.pjoneil.net.
You might want to include this compactor/compressor in your analysis.
Regards
Pat








Andrew on January 28th, 2008
Yep,
You’ve missed one: YUI compressor (a part of YUI library).
I haven’t heard about Bananascript.com - it looks sweet.