xchg.ca
xchg.ca

Reputation: 1164

How can I reduce the size of Google closure library for deployment?

The Google closure library is huge, how can I reduce size of it to deploy it with my project? It contains lots JavaScript files and whole bunch of resources, in total 14mb, would be nice to know what can I do to optimize it.

Upvotes: 2

Views: 350

Answers (2)

John
John

Reputation: 5468

It isn't a standalone library. It is intended to be used in parts. For simple hacking you can however use http://www.programmingclosure.com/closure-lite/

Upvotes: 2

Felix Kling
Felix Kling

Reputation: 816820

I don't think the library (as is) is intended to be used in production. Use the Closure Compiler.

See also Shrinking Code with ClosureBuilder and the Closure Compiler in the Google Closure documentation.

Upvotes: 3

Related Questions