File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ define(function () {
78
78
}
79
79
}
80
80
81
- //Check if document already complete , and if so, just trigger page load
81
+ //Check if document is no longer loading , and if so, just trigger page load
82
82
//listeners. Latest webkit browsers also use "interactive", and
83
83
//will fire the onDOMContentLoaded before "interactive" but not after
84
84
//entering "interactive" or "complete". More details:
@@ -89,7 +89,7 @@ define(function () {
89
89
//so removing the || document.readyState === "interactive" test.
90
90
//There is still a window.onload binding that should get fired if
91
91
//DOMContentLoaded is missed.
92
- if ( document . readyState === "complete ") {
92
+ if ( document . readyState !== "loading ") {
93
93
pageLoaded ( ) ;
94
94
}
95
95
}
You can’t perform that action at this time.
0 commit comments