ArcBees / gwtquery

A jQuery clone for GWT, and much more.
MIT License
85 stars 38 forks source link

Delay static initialization in order to reduce code size #139

Open jDramaix opened 11 years ago

jDramaix commented 11 years ago

Original author: julien.d...@gmail.com (September 30, 2011 15:37:34)

We use a number of static field in GwtQuery. These fields add extra code in the resulting compiled js code. Even if they are not used.

We have to lazy load these field and initialize them only when we need them.

Original issue: http://code.google.com/p/gwtquery/issues/detail?id=107

jDramaix commented 11 years ago

From julien.d...@gmail.com on September 30, 2011 15:39:46 Examples of static stuff to lazy load :