[OpenLayers-Users] optimizations to deliver openlayers js
faster?
Christopher Schmidt
crschmidt at metacarta.com
Tue Jan 9 17:18:44 EST 2007
On Tue, Jan 09, 2007 at 03:35:26PM -0500, Chris Holmes wrote:
> Hey guys, we're contemplating putting a little demo similar to the one
> on openlayers homepage on the GeoServer homepage. But my concern is
> that the javascript loading can be a bit slow.
Is this a concern you've seen from the OpenLyaers home page, or other
pages? The OpenLayers homepage is using:
* gzip encoding (post-filter in Apache2) of the javascript
* Single file build
If this isn't enough for you, it is possible to build a much smaller
single file build via Build Profiles:
http://trac.openlayers.org/wiki/Profiles
> What's the most efficient way to deliver the javascript so it loads up
> quickly? Do I gzip it somehow? Put it all in one file? Have it load
> modularly?
python build/build.py in 2.3+ or build/build.sh in 2.2- are the ways to
build a single file version -- alternatively, use the hosted API, which
does this, and also has the nifty apache setup, for you.
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list