Fixing DOM load event weirdness in the latest chrome.