Is it possible to hold or delay document.ready execution for sometime?
Answer / chaitanya
Yes, its possible. With Release of jQuery 1.6, a new method "jQuery.holdReady(hold)" was introduced. This method allows to delay the execution of document.ready() event. document.ready() event is called as soon as your DOM is ready but sometimes there is a situation when you want to load additional JavaScript or some plugins which you have referenced.
Hide Copy Code
$.holdReady(true);
$.getScript("myplugin.js", function() {
$.holdReady(false);
});
Is This Answer Correct ? | 0 Yes | 0 No |
Mention some advantages of jquery.
What is the difference between the knockout and jquery?
What is the difference between event.stopPropagation and event.stopImmediatePropagation?
Can you use multiple document.ready() function on the same page?
Explain the each() function?
Can we use our own specific character in the place of $ sign in jQuery?
How to include jQuery in ASP.Net project?
What is a cdn? What are the advantages of using cdn?
How to control page titles in jquery mobile? : jquery mobile
How to work with jQuery parent(), children() and siblings()?
Which operating system is more compatible with jQuery?
What is jquery a client or server scripting?