One of the things that many people try their best to do when deploying their JavaScript code to production, is use a minified version of the code. By that, I mean, remove the unnecessary white-space, extra symbols, and shorten the names of variables. If you don’t have much JavaScript, you can easily do this yourself, but when most of us use JavaScript, we have enough to make us want to use a program to shrink down the code. If you are one of those people that is looking for a great way to shrink your JavaScript code down, I definitely suggest Google Closure Compiler.

Many people may wonder how reliable a minifier such this one is. I can assure you that it is the most reliable one that I know of (after all it is supported by Google :D). One major reason to trust in its power is the fact that jQuery is minified using this program. I too minify every build of jPaq with the Closure Compiler. I am sure that many other JavaScript library writers have turned to this as well because of its dependability and awesomeness! 8)

Categories: BlogJavaScriptJScript

1 Comment

Chris West's Blog » Minifying Your JavaScript Code · September 27, 2011 at 12:34 PM

[…] Chris West's Blog » Minifying Your JavaScript Code Tags: 101 names, power 105, javascript code, white space […]

Leave a Reply

Your email address will not be published. Required fields are marked *