Google’s Closure Compiler Service API: the ADVANCED_OPTIMIZATIONS Option

In this fifth part of the series, you will learn how to work with the “ADVANCED_OPTIMIZATIONS” option provided by Google’s Closure Compiler Service API. It can be used to perform a more sophisticated optimization process on JavaScript snippets. If you ever need to minify your client-side scripts to their minimal expression, using this option is undoubtedly the way to go.
Continue reading

Google’s Closure Compiler Service API: the SIMPLE_OPTIMIZATIONS Option

In this fourth part of the series, I show you how to apply a more rigorous level of optimization to a JavaScript file by passing the SIMPLE_OPTIMIZATIONS option to the Closure Compiler API. This process removes white space and comments, and shortens function and variable names, which significantly reduces the size of the target file.
Continue reading