Is it possible to hold or delay document.ready execution for sometime?
Answer Posted / 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 |
Post New Answer View All Answers
How we can get the input value of an element using jquery?
Is jquery html() method works for both html and xml documents?
What are the methods used to provide effects in jquery?
Can we call C# code behind using jQuery?
Why do we use jquery? : jquery mobile
How to disable/enable an element in jquery?
What programming language does jquery use?
What is event.stoppropagation? : jquery mobile
Explain the use of the .pushstack() method.
What is the use of queue() in jquery?
Is jQuery is a client or server scripting?
Can you please explain the difference between .js and .min.js? : jquery mobile
Explain data paremeter of jquery ajax method?
How can jquery library be added to pages?
How to submit a form without submit button using jquery?