Server IP : 85.214.239.14 / Your IP : 3.135.195.180 Web Server : Apache/2.4.62 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.18 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /proc/2/task/2/cwd/proc/3/root/srv/modoboa/instance/sitestatic/jquery/test/ |
Upload File : |
<!DOCTYPE html> <html> <!-- Test for jQuery.holdReady. Needs to be a standalone test since it deals with DOM ready. --> <head> <title> jQuery.holdReady Test </title> <style> div { margin-top: 10px; } #output { background-color: green } #expectedOutput { background-color: green } </style> <script src="../dist/jquery.min.js"></script> <!-- Load the script loader that uses jQuery.readyWait --> <script src="data/readywaitloader.js"></script> <script type="text/javascript"> jQuery(function() { // The delayedMessage is defined by // the readywaitasset.js file, so the // next line will only work if this DOM // ready callback is called after readyWait // has been decremented by readywaitloader.js // If an error occurs. jQuery("#output").append(delayedMessage); }); </script> </head> <body> <h1> jQuery.holdReady Test </h1> <p> 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.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 with jQuery. </p> <p> Script loaders are the most likely kind of script 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> <p> <strong>Expected Result</strong>: The text <span id="expectedOutput">It Worked!</span> appears below after about <strong>2 seconds.</strong> </p> <p> If there is an error in the console, or the text does not show up, then the test failed. </p> <div id="output"></div> </body> </html>