File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,9 @@ function initDocument (document, window) {
176176 console . warn ( err ) ;
177177 }
178178
179+ document . readyState = 'interactive' ;
180+ document . dispatchEvent ( new Event ( 'readystatechange' , { target : document } ) ) ;
181+
179182 document . dispatchEvent ( new Event ( 'DOMContentLoaded' , {
180183 target : document ,
181184 bubbles : true ,
@@ -187,15 +190,15 @@ function initDocument (document, window) {
187190 console . warn ( err ) ;
188191 }
189192
193+ document . readyState = 'interactive' ;
194+ document . dispatchEvent ( new Event ( 'readystatechange' , { target : document } ) ) ;
195+
190196 document . dispatchEvent ( new Event ( 'DOMContentLoaded' , {
191197 target : document ,
192198 bubbles : true ,
193199 } ) ) ;
194200 }
195201
196- document . readyState = 'interactive' ;
197- document . dispatchEvent ( new Event ( 'readystatechange' , { target : document } ) ) ;
198-
199202 document . readyState = 'complete' ;
200203 document . dispatchEvent ( new Event ( 'readystatechange' , { target : document } ) ) ;
201204
You can’t perform that action at this time.
0 commit comments