We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61ab4e1 commit b67b29aCopy full SHA for b67b29a
1 file changed
domReady.js
@@ -83,8 +83,13 @@ define(function () {
83
}
84
85
//Check if document already complete, and if so, just trigger page load
86
- //listeners.
87
- if (document.readyState === "complete") {
+ //listeners. Latest webkit browsers also use "interactive", and
+ //will fire the onDOMContentLoaded before "interactive" but not after
88
+ //entering "interactive" or "complete". More details:
89
+ //http://dev.w3.org/html5/spec/the-end.html#the-end
90
+ //http://stackoverflow.com/questions/3665561/document-readystate-of-interactive-vs-ondomcontentloaded
91
+ if (document.readyState === "complete" ||
92
+ document.readyState === "interactive") {
93
pageLoaded();
94
95
0 commit comments