4 Test for jQuery.holdReady. Needs to be a
5 standalone test since it deals with DOM
13 div { margin-top:
10px; }
14 #output { background-color: green }
15 #expectedOutput { background-color: green }
17 <script src=
"../jquery.js"></script>
18 <script src=
"./iframeTest.js"></script>
20 <!-- Load the script loader that uses
23 <script type=
"text/javascript">
27 jQuery
.holdReady( true );
29 setTimeout( function() {
31 jQuery
.holdReady( false );
35 jQuery( "#output" ).text( "Ready called, holdReady released: " + released
);
36 startIframeTest( released
);
46 This is a test page for jQuery.readyWait and jQuery.holdReady,
48 <a href=
"https://bugs.jquery.com/ticket/6781">trac-
6781</a>
50 <a href=
"https://bugs.jquery.com/ticket/8803">trac-
8803</a>.
53 Test for jQuery.holdReady, which can be used
54 by plugins and other scripts to indicate something
55 important to the page is still loading and needs
56 to block the DOM ready callbacks that are registered
60 Script loaders are the most likely kind of script
61 to use jQuery.holdReady, but it could be used by
62 other things like a script that loads a CSS file
63 and wants to pause the DOM ready callbacks.
66 <strong>Expected Result
</strong>: The text
67 <span id=
"expectedOutput">It Worked!
</span>
68 appears below after about
<strong>2 seconds.
</strong>
71 If there is an error in the console,
72 or the text does not show up, then the test failed.
74 <div id=
"output"></div>