Shawn Miller

JsFramework Now Optimized With Google Closure Compiler

November 09, 200911:06 PM

We switched JsFramework's JavaScript optimization from Yahoo's YUI Compressor to Google's Closure Compiler.

The Closure Compiler does a slightly better job optimizing our JavaScript than the YUI Compressor, saving about 1.4 KB. However, the real win is the Closure Compiler's REST API which we were able to get up and running in about four lines of C# code. The big advantage with the REST API is there's no JAR file to maintain/deploy and Google can keep the Closure Compiler API up to date as changes are made.

JsFramework unit tests are still passing after making the switch to Closure Compiler.