Online Tool compares Packer, JSMin, Dojo, and YUI Compressor

FREE THOUGHT · FREE SOFTWARE · FREE WORLD

Online Tool compares Packer, JSMin, Dojo, and YUI CompressorSeptember 13th, 2008

« New Version of Password Protection PluginCrazy Advanced Mod_Rewrite Tutorial »

I found this sweet online tool called CompressorRater that compresses javascript using all the top compression engines around, and it provides really detailed results.. Its a great example of an online tool as well.. Discuss it.

Try it out a few times and see which compression engine works the best for you.. I’ve been compressing my javascript for years and It translates into much faster rendering and faster connections. Automate it like I do. I’ve used Dojo/Shrinksafe powered by Rhino. for awhile, but its always nice to see if something else works better.. let me know what works the best for you guys.


CompressorRater Logo

Arthur Blake

There are many tools available that can help you compress your JavaScript code but it can be time consuming and difficult to analyze which tool works the best for a given situation. This web application shows aggregated statistics on the general level of compression in all these tools, and allows developers to easily play with and compare the different tools on their own JavaScript code without having to set up all the tools on their own.


Javascript Input



CompressorRator Output



Javascript Compression Options

The following compression tools are compared, both with and without the affects of additional gzip compression that are supported natively by modern web browsers.

  • JSMin is a conservative compressor, written several years ago by Douglas Crockford. It is considered safe (especially if you verify your code with JSLint first– an excellent thing to do anyway) because it doesn’t attempt to change any variable names.
  • Dojo shrinksafe is a very popular Java based JavaScript compressor that parses the JavaScript using the rhino library and crunches local variable names.
  • Packer by Dean Edwards, is also a very popular JavaScript compressor, that can go beyond regular compression and also add advanced on-the-fly decompression with a JavaScript runtime piece.
  • YUI Compressor is a newer compressor written by Julien Lecomte, that aims to combine the safety of JSMin with the higher compression levels acheived by Dojo Shrinksafe. Like Dojo shrinksafe, it is written in Java and based on the rhino library.

« New Version of Password Protection PluginCrazy Advanced Mod_Rewrite Tutorial »

Reader Comments

  1. [...] this site, I added the ga.js code to my http://z.askapache.com/z/j/apache-999.js file, then I compressed it online and saved to [...]

RSS feed for comments on this post.TrackBack URL

Add Your Opinion

Skip to Comments
180

It's very simple -
you read the protocol
and write the code.
-Bill Joy

HTML | DCMI | GRDDL | XOXO | XDMP | XFN | DOM | XML | XHTML 1.1 Strict | CSS 2.1 | W3C | WAI | DISA | ICSI | GIAC | SANS RR | GHOST

Authority: 110

↑ TOP

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution 3.0 License, just credit with a link.
This site is not supported or endorsed by The Apache Software Foundation (ASF). All software and documentation produced by The ASF is licensed according to these terms. "Apache" is a trademark of The ASF.

Site Map | Contact Webmaster | Glossary | License and Disclaimer | Terms of Service