Want optimized JavaScript code?

Then you need to check out the Google Closure compiler. You can also use the compiler as a service. I just tested it on a basic form validation JavaScript and it compiled it down by 39% – not too bad. The iFrame below is not the greatest but you can re-size the panels inside of the page to make it legible.

http://closure-compiler.appspot.com/home

Advertisements