Opened 14 years ago

Last modified 14 years ago

#484 new defect

Debug mode broken in Firefox 4

Reported by: heikki Owned by: heikki
Priority: major Milestone: Future release
Component: User interface (web) Version: v2.6.3
Keywords: javascript, debug Cc:

Description

Firefox 4 apparently does not use a depth-first loading mechanism for javascript files.

This means that in debug mode (when non-minified js is returned), OpenLayers.js does not first load the files loaded from inside it, before other js files that depend on them are loaded (the i18n files for the map, Scalebar.js, GeoExt.js, etc. -- listed in xsl/geo/utils.xsl).

Moving these dependencies inside the list of file loaded by OpenLayers.js fixes this.

Change History (1)

comment:1 by heikki, 14 years ago

Milestone: v2.6.4Future release

The sketched solution doesn't work. It appears we have no control over the order in which Firefox loads separate js files.

That is works fine in normal (non-debug) mode could be said to be a coincidence too, as some of the loaded js files in normal mode depend on scripts in the minimized js ball having been loaded. At present this works fine, but if an issue arises, offending js files could probably be included in the minimized js ball.

Note: See TracTickets for help on using tickets.