[OpenLayers-Dev] Debugging OpenLayers: a script not minified?

Xurxo Mendez sonxurxo at gmail.com
Mon Feb 7 11:49:38 EST 2011

Yes it is, absolutely. If you look at Firebug (or Developer's options window
in Chrome) you'll find a lot of requests when linking lib/OpenLayers.js
file, one per file included. Using the minified one it's just one request
(plus Css and/or images).

Best regards,

Xurxo Méndez Pérez


2011/2/7 Andrés Maneiro <amaneiro at icarto.es>

> On 07/02/11 17:30, Xurxo Mendez wrote:
>> or the tarball, but your html code should link to
>> $OL_HOME/lib/OpenLayers.js, rather than $OL_HOME/OpenLayers.js. This
>> file is a kind of loader script that loads (take a look at that file)
>> the others. You might want to see how downloaded examples (at
>> $OL_HOME/examples) include the script.
> That was definitively helpful!
> So, just one more question now: is it recommended for production
> environments to link $OL_HOME/OpenLayers.js instead of
> $OL_HOME/lib/OpenLayers.js?
> By the way, thanks for your quick and very good feedback.
> best,
> amaneiro
> _______________________________________________
> Dev mailing list
> Dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20110207/dcf75340/attachment.html

More information about the Dev mailing list