diff options
author | jeresig <jeresig@gmail.com> | 2010-09-23 12:09:49 -0400 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2010-09-23 12:09:49 -0400 |
commit | 6dfdb14753c66cfd38f8445bd6119ef4a1274d5e (patch) | |
tree | 5b97a1d1d4747cf1820e8a966ee175fb0500e587 /src | |
parent | 894bd02a06fc10cfa9cb3ebd1a17d8ede533b919 (diff) | |
parent | e270d804b4cee58dbf438251e9becb6f0f2ac123 (diff) | |
download | jquery-6dfdb14753c66cfd38f8445bd6119ef4a1274d5e.tar.gz jquery-6dfdb14753c66cfd38f8445bd6119ef4a1274d5e.zip |
Merge branch 'master' of github.com:jquery/jquery
Diffstat (limited to 'src')
-rw-r--r-- | src/core.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core.js b/src/core.js index 158f47998..2c2b74666 100644 --- a/src/core.js +++ b/src/core.js @@ -437,7 +437,8 @@ jQuery.extend({ // Catch cases where $(document).ready() is called after the // browser event has already occurred. if ( document.readyState === "complete" ) { - return jQuery.ready(); + // Handle it asynchronously to allow scripts the opportunity to delay ready + return setTimeout( jQuery.ready, 13 ); } // Mozilla, Opera and webkit nightlies currently support this event |