> Full Builds: > > 900504 OpenLayers-jsmin.js > 719130 OpenLayers-closure.js (20% savings) > > 200584 OpenLayers-jsmin.js.gz > 172663 OpenLayers-closure.js.gz (14% savings)
As an experiment, I tested changing all cases of the word OpenLayers to OL in the source code, to see if that would help. While the uncompressed closure build (unsurprisingly) shrunk by 30k to 685556, the gzipped build (also unsurprisingly) did not change much, dropping only 125 bytes to 172538. Assuming that all application code delivered to clients is gzipped, there is relatively little to be gained via trivial name changes like this. :) -- Chris > Lite Builds: > > 123091 OpenLayers-lite-jsmin.js > 96678 OpenLayers-lite-closure.js (21% savings) > > 30977 OpenLayers-lite-jsmin.js.gz > 26347 OpenLayers-lite-closure.js.gz (15% savings) > > Using the closure compiler, all OpenLayers tests continue to pass, > and the examples that I have tested appear to continue to work. The live > examples at http://openlayers.org/dev/examples/ are now using > a closure-based build as well, so if you have any problems with these > examples, please report them to the mailing list. > > As always, using minimal build profiles and gzipping javascript before > delivering it is the best way to minimize Javascript download size. > > Thanks! > > -- Chris > _______________________________________________ > Dev mailing list > d...@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-dev _______________________________________________ Dev mailing list d...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-dev