Permalink
Browse files

Fixes #1, remove the ambitious interactive check

  • Loading branch information...
jrburke committed Aug 9, 2012
1 parent a6c5cdf commit a3e0dd8b6d3d3ee636ff0ca6a5a7c302d6ab33bf
Showing with 6 additions and 2 deletions.
  1. +6 −2 domReady.js
View
@@ -84,8 +84,12 @@ define(function () {
//entering "interactive" or "complete". More details:
//http://dev.w3.org/html5/spec/the-end.html#the-end
//http://stackoverflow.com/questions/3665561/document-readystate-of-interactive-vs-ondomcontentloaded
if (document.readyState === "complete" ||
document.readyState === "interactive") {
//Hmm, this is more complicated on further use, see "firing too early"
//bug: https://github.com/requirejs/domReady/issues/1
//so removing the || document.readyState === "interactive" test.
//There is still a window.onload binding that should get fired if
//DOMContentLoaded is missed.
if (document.readyState === "complete") {
pageLoaded();
}
}

0 comments on commit a3e0dd8

Please sign in to comment.