Google CDN

459 views
Skip to first unread message

Sal

unread,
Nov 5, 2009, 10:31:43 PM11/5/09
to Closure Library Discuss
Are there any plans (i'm guessing there are) to offer Closure
(library
component) as an AJAX Libraries API?

Nathan Naze

unread,
Nov 5, 2009, 11:27:52 PM11/5/09
to closure-lib...@googlegroups.com
Closure Library differs from a lot of other JavaScript libraries in
that it's very broad and large and, in general, every class or
namespace is stored in its own file, so just what is needed can be
included in an app. As such, it's infeasible to require users to pull
all of Closure as they would another library in the AJAX APIs, as the
download would be very large and split over a lot of individual
requests. So we don't have any immediate plans for AJAX API support.

Closure Compiler is made to be used with Closure Library to assemble
"JavaScript binaries" that are compressed JavaScript files that
include both your files and what you pull from Closure Library.

So while there's not an AJAX API to pull Closure Library, there's a
Closure Compiler webservice that you can use to generate the compiled
JavaScript for your project. That's located here:
http://closure-compiler.appspot.com/home

You can also use the compiler locally. See the documentation for tips on that.

Thanks,

Nathan

Reply all
Reply to author
Forward
0 new messages