pouët.net

1KB JavaScript Packer

This 1KB JavaScript Packer is made by me for http://www.ScriptCompress.com

This little web app takes a JavaScript (one line minified is best) source code and looks for repeated phrases and words to replace with a single character. It does not do any other minifying (like removing whitespace, line breaks, none of that, that should already be done by you).

Screenshot:
http://www.scriptcompress.com/images/1kb-javascript-packer-www.ScriptCompress.com.png

In the screen shot we see 2 text boxes. Top is original script, bottom is the generated script. This sample starts with a 3,106 byte sample and squishes it to 2,068 bytes. Not huge savings, but 33% knocked off without any compression or fancy formulas, I can't complain about such results from a small and simple appplication.

My Google+: http://google.com/+DaveBrown