Without a doubt Ajax applications are becoming more powerful by the day. That also means that JavaScript files are getting bigger and more complex. So lets look at some ways to cut down on bandwidth and memory by compressing JavaScript files. The browser doesn’t need the nicely formatted JavaScript with white space and comments so we can remove these. Check out our 10+1 crazy JS compressor tools. Have fun!

Related Posts:

1. JsMini

Online JavaScript and jQuery Minifier Tool. Minify your JS code, free and simple to use, lightning fast compression.


Source + Demo

2. ExtDoc – JavaScript Comments Processor

ExtJS library has a specific JavaScript documentation style – ExtDoc parses JavaScript source files and creates template-based output. Support for custom tags and fully templated output.

ExtDoc - JavaScript Comments Processor


3. JsDoc Toolkit

It is an application written in JavaScript, for automatically generating template-formatted, multi-page HTML (or XML, JSON, or any other text-based) documentation from commented JavaScript source code.

JsDoc Toolkit


4. jGrouseDoc

Allows developers manage and document code comments using a format similar to Javadoc’s. Allows documenting of JavaScript classes, regardless which approach or framework is being used for it – be it Prototype, Dojo, jGrouse or any other.



5. Fiddler

It is a Web Debugging Proxy which logs all HTTP(S) traffic between your computer and the Internet. Fiddler allows you to inspect all HTTP(S) traffic, set breakpoints, and “fiddle” with incoming or outgoing data.



6. Tamperdata – Firefox Extension

View and modify HTTP/HTTPS headers and post parameters, trace and time http response/requests and security test web applications by modifying POST parameters.

Tamperdata – Firefox Extension

Source + Demo

7. Packer – JavaScript Compressor

One of the most widely used tools to minify JavaScript code is Dean Edwards’ Packer. The packing algorithm is forgiving of all forms of JavaScript with one exception. You must correctly terminate all JavaScript statements with semi-colons.

Packer – JavaScript Compressor


8. ShrinkSafe

Is a JavaScript “compression” system. It can typically reduce the size of your scripts by a third or more, depending on your programming style.



9. YUI Compressor

It is a JavaScript minifier designed to be 100% safe and yield a higher compression ratio than most other tools. Also able to compress CSS files.

YUI Compressor


10. JS Minifier

Code is pre-filled with an example.

JS Minifier

Source + Demo

11. JavaScript Compressor

Does a straighforward whitespace/comment crunching and a more fundamental transformation, aka compression.

JavaScript Compressor

Source + Demo

Sam Deering is a Front-end Web Developer who specialises in JavaScript & jQuery. Sam is driven and passionate about sharing his knowledge to educate others.

Free Guide:

How to Choose the Right Charting Library for Your Application

How do you make sure that the charting library you choose has everything you need? Sign up to receive this detailed guide from FusionCharts, which explores all the factors you need to consider before making the decision.

No Reader comments

Special Offer
Free course!

Git into it! Bonus course Introduction to Git is yours when you take up a free 14 day SitePoint Premium trial.