Compress Your JavaScript

I have been doing some web applications lately, and wanted to compress my JavaScript files so that page loads are quicker. I looked around for applications to do this, and ended up building my own based off of JSMin. I am releasing it to the public for free usage as well. It is a toned down version making it easy to cut and paste your JavaScript and get the compressed results. I am also working on a CSS version that will do the same for CSS files. In the future I would like to build a free desktop application that will compress all of your JavaScript and CSS files in one swoop. I know there are applications out there that do that, but I just want a quick down and dirty way of accomplishing this. In the mean time, compress your JavaScript below:

Compression Level

Input


- - - - - -

Output



Old Size: N/A  New Size: N/A  Ratio: N/A

Based off of the JavaScript version of JSMin.


If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments

Just wanted to say thanks for the neat little utility there…..

No problem, I have actually used it a lot more than I thought I would. I am going to make a desktop app soon.

hi great job……..

hi you did really great job man just keep it up……..

I recently wrote about this (February 13th) at my website (here is the link to the story) http://nostatus.com/web/02/2007/css-and-javascript-compressor/

I thought there was definitely a need to clean up and compress both the CSS and JS. It’s great to see that you did this and props to pingates also.

Thanks :)

[...] while back I created a small JavaScript Compression tool, which basically stripped the unnecessary whitespace from your JavaScript to help it load faster [...]

[...] compresseur de Code And Coffee. Ce outil vous propose de compresser des lignes de code que vous entrer dans un textarea, en ligne. [...]

[...] and Coffee: Compress Your JavaScript http://www.codeandcoffee.com/2006/10/02/compress-your-javascript/ A good javascript compression tool - what I like about it is that it gives you the option of not [...]

Thanks! I used your compression tool to reduce the size of my javascript file and it works great!

Sorry, the comment form is closed at this time.