[OpenLayers-Users] optimizations to deliver openlayers js faster?

Chris Holmes cholmes at openplans.org
Tue Jan 9 17:22:06 EST 2007



Christopher Schmidt wrote:
> 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 

No, not at all.  Sorry, should have stated more clearly.  Was mostly 
looking to figure out exactly what you guys were doing on OpenLayers 
homepage.

>  
> 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   

Cool.

> 
>> 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.

Thanks!  It sounds like the easiest thing is to just use the hosted 
file.  /me crosses fingers for 2.3.0 hosted version soon (I can function 
without it though).

Chris

> 
> Regards,

-- 
Chris Holmes
The Open Planning Project
http://topp.openplans.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cholmes.vcf
Type: text/x-vcard
Size: 269 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070109/4eff1a92/cholmes.vcf


More information about the Users mailing list