On Fri, Feb 04, 2011 at 04:02:04PM +0000, Robert Buckley wrote: > Hi, > > When developing a relatively large ext/geoext app, which would be the best > way > of starting the app from the initial html page? I am rather confused about > which > does what and which is better for performance. > > > As far as I can understand the following happens.. > > onload="init();" triggers the javascript code when the html page is fully > loaded > into the browser > > Ext.onReady(function()...loads when the ext.js library has been loaded into > the > browser (..cache?)so which is more effective?
The latter runs when the browser fires the DOMReady event. Unfortunately, if you have VML layers, IE fires too soon -- the document.namespaces element is not actually ready yet, so VML layers will cause IE to throw an error if you don't use onload= . > yours, > > Robert > > _______________________________________________ > Users mailing list > [email protected] > http://www.geoext.org/cgi-bin/mailman/listinfo/users -- Christopher Schmidt Web Developer _______________________________________________ Users mailing list [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/users
