Ticket #2873 (closed feature: fixed)
Build: Compressed code "OpenLayers.js" can be reduced by 9k
| Reported by: | jorix | Owned by: | jorix |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.11 Release |
| Component: | general | Version: | 2.10 |
| Keywords: | Cc: | ||
| State: | Commit |
Description
"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"
(it is possible to exclude more lines, but I choose to keep the code clean)
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

