Closure Compiler
REST API
|
Help
Add a URL:
Add
Example: http://www.example.com/bigfile.js
Optimization:
Whitespace only
Simple
Advanced
Which optimization is right for my code?
Formatting:
Pretty print
Print input delimiter
Compile
Reset
// ==ClosureCompiler== // @compilation_level SIMPLE_OPTIMIZATIONS // @output_file_name default.js // ==/ClosureCompiler== // ADD YOUR CODE HERE function hello(name) { alert('Hello, ' + name); } hello('New user');
Original Size:
Compiled Size:
Compiled Code
Warnings
Errors
POST data