You may also like to Read:
Closure Compiler offers three levels of compilations like white space only (WHITESPACE_ONLY), simple optimizations (SIMPLE_OPTIMIZATIONS) and advanced optimization (ADVANCED_OPTIMIZATIONS) compilation. SIMPLE_OPTIMIZATIONS is the default level of compilation.
The WHITESPACE_ONLY compilation level removes comments from your code and also removes line breaks, unnecessary spaces, and other white space but the SIMPLE_OPTIMIZATIONS level does the following extra steps,
- Optimizations within expressions and functions
- Renaming local variables and function parameters to shorter names
The ADVANCED_OPTIMIZATIONS compilation level performs all the operations as SIMPLE_OPTIMIZATIONS level but also performs the below mentioned additional steps,
- More aggressive renaming
- Dead code removal
- Global inlining
- Enable extreme compression by making “strong assumptions” and may result in code that does not run, if your code does not conform to those assumptions.