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 |
What are the advantage of using minimized version of jquery?
How to use transition effects? : jQuery Mobile
Differentiate the concepts of .js and .min.js?
How to fetch the values of selected checkbox array using jquery?
What is the latest version of jquery?
What is the difference between $.map and $.grep in jQuery?
How can we debug jQuery?
List the advantage of using minimized version of jquery?
Can JQuery Run on MAC or Linux instead of Windows?
What is the difference between parent() and parents() methods in jQuery?
Explain some benefits of jquery knockout?
With jquery ui 1.7 being released in the last few days, what do you see as the key parts of jquery ui 1.7? What are you most proud of out of that release?