Closure Compiler is a Javascript optimizer that compiles javascript code into a compact, high performance form. The compiler does more than a standard Javascript compressor. The Closure Compiler reduces the size of your JavaScript files and makes them more efficient, helping your application to load faster and reducing your bandwidth needs. Moreover, it removes dead code, rewrites the code to improve code running speed on browsers' Javascript engines. It also checks syntax, variable references, variable types and warns about Javascript errors.

Img:Closure Compiler by Google - reduces the size of your JavaScript files and makes them more efficient
As mentioned before, Closure compiler is more than a standard Javascript compressor. Using it results having a less buggy and easier to maintain code.
The compiler also offers a Firebug extension, named Inspector, for better debugging.
You can use the Closure Compiler as:
* An open source Java application that you can run from the command line.
* A simple web application.
* A RESTful API.

Img:Closure Compiler by Google does more than removing whitespace.
No comments:
Post a Comment