Hi (hello Tim!),
I was trying to rebuild the compressed minimal OL to be used for
the preview using OL 2.6, and I'm hitting some difficulty so
I thought I'd ask the experts.

In OL 2.6 the configuration files look a bit different, so I
tried to merge the lite.cfg shipped with OL with the wfs.cfg
that can be found in GeoServer and came up with the following:

[first]
OpenLayers/SingleFile.js
OpenLayers.js
OpenLayers/BaseTypes.js
OpenLayers/BaseTypes/Class.js
OpenLayers/Util.js
Rico/Corner.js

[last]

[include]
OpenLayers/Console.js
OpenLayers/Events.js
OpenLayers/Map.js
OpenLayers/Layer.js
OpenLayers/Layer/Grid.js
OpenLayers/Layer/HTTPRequest.js
OpenLayers/Layer/WMS.js
OpenLayers/Layer/WMS/Untiled.js
OpenLayers/Tile.js
OpenLayers/Tile/Image.js
OpenLayers/Ajax.js
OpenLayers/Control/Attribution.js
OpenLayers/Control/ArgParser.js
OpenLayers/Control/Navigation.js
OpenLayers/Control/PanZoom.js
OpenLayers/Control/PanZoomBar.js
OpenLayers/Control/Scale.js
OpenLayers/Control/MousePosition.js
OpenLayers/Control/LayerSwitcher.js
OpenLayers/Format/XML.js

[exclude]
Firebug/firebug.js
Firebug/firebugx.js
OpenLayers/Lang/de.js
OpenLayers/Lang/en-CA.js
OpenLayers/Lang/fr.js
OpenLayers/Lang/cs-CZ.js


Now, the thing that strikes me a little is that OL compressed this
way went from 100kb (OL 2.5 wms.cfg) to 160kb (OL 2.6 with my modified 
wfs.cfg). I guess this is in line with the inevitable evolution of a
tool that does more and more things, but I was wondering nevertheless if
I could shave off some more stuff.

The lite.cfg + OL 2.6 configuration generates a 105kb file, but it seems 
that most of the size of what gets addeded with the above is due to 
controls, which are something we need anyways... so, is there any low 
hanging fruit there, or shall we just accept the growth and move on?

Cheers
Andrea

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to