I\'m writing a Javascript script. This script will probably be loaded asynchronously (AMD format).
In this script, I\'d like to do nothing important until the
what about overriding window.load?
window._load = window.load; window.load = function(){ window.loaded = true; window._load(); }
Then check for
if (window.loaded != undefined && window.loaded == true){ //do stuff }