git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
894bd02
)
Merge branch 'master' of github.com:jquery/jquery
author
jeresig
<jeresig@gmail.com>
Thu, 23 Sep 2010 16:09:49 +0000
(12:09 -0400)
committer
jeresig
<jeresig@gmail.com>
Thu, 23 Sep 2010 16:09:49 +0000
(12:09 -0400)
src/core.js
patch
|
blob
|
history
diff --git
a/src/core.js
b/src/core.js
index
158f479
..
2c2b746
100644
(file)
--- 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