Optimize your JavaScript files for faster page load and possibly execution speed. Copy and paste your JavaScript code into the Input field, select a compression algorithm and click Optimize.
Note that this is an early release, so if you have any questions or want to make a suggestion, please drop us an e-mail at hello at diveintojavascript dot com.
This tool uses the following libraries:
JSMin is a filter that removes comments and unnecessary whitespace. Packer is a dictionary-based compressor and so the overhead of unpacking the script on the client side may eventually outweight the file size benefits. The YUI Compressor and the Closure Compiler not only reduce the size of your JavaScript code, they also [try to] make it more efficient.
If you see a typo, want to make a suggestion or have anything in particular you'd like to know more about, please drop us an e-mail at hello at diveintojavascript dot com.
Copyright © 2010-2011 Dive Into JavaScript