Debian Codegraph @

util/buildscripts/jslib/dojoGuardEnd.jsfrag

raw
1 //INSERT dojo.i18n._preloadLocalizations HERE
2
3 //Check if document already complete, and if so, just trigger page load
4 //listeners. NOTE: does not work with Firefox before 3.6. To support
5 //those browsers, set djConfig.afterOnLoad = true when you know Dojo is added
6 //after page load. Using a timeout so the rest of this
7 //script gets evaluated properly. This work needs to happen after the
8 //dojo.config.require work done in dojo._base.
9 if(dojo.isBrowser && (document.readyState === "complete" || dojo.config.afterOnLoad)){
10 window.setTimeout(dojo._loadInit, 100);
11 }
12 })();