Closure Compiler Documentation
Stay organized with collections
Save and categorize content based on your preferences.
Contents:
- Closure Compiler Application
- Advanced Topics and Reference
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-17 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-17 UTC."],[[["\u003cp\u003eThe Closure Compiler offers a service with a UI and API, as well as a standalone application for JavaScript optimization.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can get started with basic tutorials for the UI, API, and application to understand the fundamentals.\u003c/p\u003e\n"],["\u003cp\u003eAdvanced options allow for deeper control over compilation, including setting compilation levels and using externs.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation covers key aspects like API reference, restrictions, annotations, and advanced compilation techniques.\u003c/p\u003e\n"],["\u003cp\u003eUsing the Closure Compiler helps achieve better compression rates and improved JavaScript code quality.\u003c/p\u003e\n"]]],[],null,["# Closure Compiler Documentation\n\nContents:\n\n- **Closure Compiler Application**\n - [Getting Started](/closure/compiler/docs/gettingstarted_app) --- The Hello World of the Closure Compiler application.\n- **Advanced Topics and Reference**\n - [Compilation Levels](/closure/compiler/docs/compilation_levels) --- Choose the right compilation level for your code.\n - [Restrictions Imposed by the Compiler](/closure/compiler/docs/limitations) --- Write JavaScript that works with the Closure Compiler.\n - [Advanced Compilation](/closure/compiler/docs/api-tutorial3) --- Achieve better compression rates using the Closure Compiler in advanced compilation mode.\n - [Annotating JavaScript for the Compiler](/closure/compiler/docs/js-for-compiler) --- Declare data types for your JavaScript variables to achieve enhanced optimization and warnings.\n - [Externs and Exports](/closure/compiler/docs/externs-and-exports) --- Communicating into and out of code compiled with advanced mode."]]