diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2011-02-02 21:57:44 -0500 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2011-04-07 11:26:42 -0400 |
commit | 14193e449efe76105df61d745ebd7031dd7fe783 (patch) | |
tree | 7e815de898328446c0e2c1bcf99840d36de1da9e /test/readywait.html | |
parent | bbd9c776ea22296a6807d5b760bd4e82ee5f4414 (diff) | |
download | jquery-14193e449efe76105df61d745ebd7031dd7fe783.tar.gz jquery-14193e449efe76105df61d745ebd7031dd7fe783.zip |
Create jQuery.holdReady(true/false) method to encapsulate jQuery.readyWait++ / jQuery.ready(true) logic. Fix problem where jQuery.ready may trigger twice, causing the (unsupported) document.onready to run twice. Fixes #8803 .
Diffstat (limited to 'test/readywait.html')
-rw-r--r-- | test/readywait.html | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/test/readywait.html b/test/readywait.html index 4f124767a..b4d8111eb 100644 --- a/test/readywait.html +++ b/test/readywait.html @@ -1,13 +1,13 @@ <!DOCTYPE html> <html> <!-- - Test for jQuery.readyWait. Needs to be a + Test for jQuery.holdReady. Needs to be a standalone test since it deals with DOM ready. --> <head> <title> - jQuery.readyWait Test + jQuery.holdReady Test </title> <style> div { margin-top: 10px; } @@ -52,15 +52,17 @@ </head> <body> <h1> - jQuery.readyWait Test + jQuery.holdReady Test </h1> <p> - This is a test page for jQuery.readyWait, that was - added due to this ticket - <a href="http://bugs.jquery.com/ticket/6781">#6781</a>. + This is a test page for jQuery.readyWait and jQuery.holdReady, + see + <a href="http://bugs.jquery.com/ticket/6781">#6781</a> + and + <a href="http://bugs.jquery.com/ticket/8803">#8803</a>. </p> <p> - Test for jQuery.readyWait, which can be used + Test for jQuery.holdReady, which can be used by plugins and other scripts to indicate something important to the page is still loading and needs to block the DOM ready callbacks that are registered @@ -68,7 +70,7 @@ </p> <p> Script loaders are the most likely kind of script - to use jQuery.readyWait, but it could be used by + to use jQuery.holdReady, but it could be used by other things like a script that loads a CSS file and wants to pause the DOM ready callbacks. </p> |