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 |
Difference between $(this) and 'this' in jQuery?
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?
How to delete cookies in jquery?
Do you have plans for a new jquery plug-in or something else we should look out for? Where to from here for the imgpreview plugin?
How can we apply css in odd childs of parent node using jquery library?
Explain .siblings() method in jquery?
What is chaining in jQuery?
Explain the concepts of "$ function" in jquery with an example?
List the basic selectors in jquery?
Tell me which program is useful for testing jquery?
How to add a class to html element?
How do I pull a native DOM element from a jQuery object?