views:

318

answers:

1

Google hosts a number of JavaScript libraries such as jQuery and dojo on their CDN. For some reason, their own Google Closure library does not seem to be included. Is there a hosted version of the Closure library?

+4  A: 

It's not included because Closure is intended to be used with the compiler; a hosted version would need to include the entire library and defeat the purpose of building minified libraries containing only the features you need.

Wooble
Thanks; I also discovered https://groups.google.com/group/closure-library-discuss/msg/1e2e4a47f0f47279 which says pretty much the same as you. Unfortunately this decision makes it somewhat difficult to distribute sample JS code as part of another project, that just happens to use the Google Closure library.
mjs