The closure library should be used in conjunction with the closure compiler to compile and minimize your javascript for production. It is not intended to be used as a raw file in production. Even in your developer's environment, you can use http://plovr.com/ to dynamically compile and maintain your javascript.
Closing is very detailed in its original form due to annotations of type and structure similar to java, the closure compiler not only minimizes the script, but also optimizes and removes unused scripts in order to speed up the work.
Here's an example of using plovr to dynamically serve your javascript code
java -Xmx256m -jar plovr.jar serve -p 9811 /path/to/your/closure/config.js
This will serve the compiled javascript files on localhost: 9811. For production:
java -jar plovr.jar build /path/to/your/closure/config.js > production.js
See the documentation at http://plovr.com/docs.html on how to configure plovr to compile or maintain your javascript.
source share