[OpenLayers-Trac] [OpenLayers] #2873: Build: Compressed code "OpenLayers.js" can be reduced 8k

OpenLayers trac-20090302 at openlayers.org
Tue Oct 12 07:14:22 EDT 2010


#2873: Build: Compressed code "OpenLayers.js" can be reduced 8k
---------------------+------------------------------------------------------
 Reporter:  jorix    |       Owner:  jorix       
     Type:  feature  |      Status:  new         
 Priority:  minor    |   Milestone:  2.11 Release
Component:  general  |     Version:  2.10        
 Keywords:           |       State:              
---------------------+------------------------------------------------------
 "OpenLayers.js" code in:
 {{{
 if(!singleFile) {
     var jsfiles = new Array(
         "OpenLayers/Util.js",
     ...
 }
 }}}
 never run in single file mode, and has a size of 8k. (6.25% using
 lite.cfg)

 The patch proposes changes in "tools/mergejs.py" to can specify the
 exclusion of part of the code with:
 {{{
 // @exclude code:start
  ... code to exclude ...
 // @exclude code:end
 }}}

 The patch adds "OpenLayers.js" modified to exclude the "if"[[BR]]
  (it is possible to exclude more lines, but I choose to keep the code
 clean)

-- 
Ticket URL: <http://trac.openlayers.org/ticket/2873>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list