mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fix for IE firing document ready too soon (Bug #1320).
This commit is contained in:
parent
7c85d973bf
commit
9e83f1b65f
@ -954,7 +954,7 @@ new function(){
|
|||||||
// script does not exist if jQuery is loaded dynamically
|
// script does not exist if jQuery is loaded dynamically
|
||||||
if ( script )
|
if ( script )
|
||||||
script.onreadystatechange = function() {
|
script.onreadystatechange = function() {
|
||||||
if ( this.readyState != "complete" ) return;
|
if ( document.readyState != "complete" ) return;
|
||||||
jQuery.ready();
|
jQuery.ready();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user