Monday, November 16, 2009

Google Closure Compiler VS YUI Compressor


In terms of Javascript Compression, the YUI Compressor is designed to be 100% safe and yield a higher compression ratio than the other tools listed above. That’s why most of the JavaScript Frameworks use YUI Compressor to minimize their Javascript code.

On November 5th, Google announced Closure Compiler for Javascript compression. The strongest part of the Closure Compiler is that it does not only remove whitespace but also it rewrites Javascript Code to make it smaller. It also optimizes your Javascript code to perform better.

I found a simple slides which compared the compression performance of YUI Compressor and Google Closer Compiler. It's worth taking a look at it.

If you ask which one should you use? "Whichever you find best for you" I think is the general answer at the moment - YUI has been available longer so undoubtedly will be the one which currently being the best tool.

0 comments:

Post a Comment