git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6dfdb14
)
Increase the speed of the single setTimeout calls for the ready event.
author
jeresig
<jeresig@gmail.com>
Fri, 24 Sep 2010 14:06:36 +0000
(10:06 -0400)
committer
jeresig
<jeresig@gmail.com>
Fri, 24 Sep 2010 14:06:36 +0000
(10:06 -0400)
src/core.js
patch
|
blob
|
history
diff --git
a/src/core.js
b/src/core.js
index
2c2b746
..
6c6d006
100644
(file)
--- a/
src/core.js
+++ b/
src/core.js
@@
-397,7
+397,7
@@
jQuery.extend({
if ( !jQuery.readyWait || (wait !== true && !jQuery.isReady) ) {
// Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
if ( !document.body ) {
if ( !jQuery.readyWait || (wait !== true && !jQuery.isReady) ) {
// Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
if ( !document.body ) {
- return setTimeout( jQuery.ready, 13 );
+ return setTimeout( jQuery.ready, 1 );
}
// Remember that the DOM is ready
}
// Remember that the DOM is ready
@@
-438,7
+438,7
@@
jQuery.extend({
// browser event has already occurred.
if ( document.readyState === "complete" ) {
// Handle it asynchronously to allow scripts the opportunity to delay ready
// browser event has already occurred.
if ( document.readyState === "complete" ) {
// Handle it asynchronously to allow scripts the opportunity to delay ready
- return setTimeout( jQuery.ready, 13 );
+ return setTimeout( jQuery.ready, 1 );
}
// Mozilla, Opera and webkit nightlies currently support this event
}
// Mozilla, Opera and webkit nightlies currently support this event