JQuery Programmer Question: Download Questions PDF
What is jQuery.holdReady() function?
![JQuery Programmer Interview Answer JQuery Programmer Interview Question](https://globalguideline.com/public/images/interview/23.png)
Answer:
► By using jQuery.holdReady() function we can hold or release the execution of jQuery's ready event.
► This method should be call before we run ready event.
► To delay the ready event, we have to call
jQuery.holdReady(true);
► When we want to release the ready event then we have to call
jQuery.holdReady(false);
► This function is helpful when we want to load any jQuery plugins before the execution of ready event.
For example
$.holdReady(true);
$.getScript("xyzplugin.js", function()
{
$.holdReady(false);
});
► This method should be call before we run ready event.
► To delay the ready event, we have to call
jQuery.holdReady(true);
► When we want to release the ready event then we have to call
jQuery.holdReady(false);
► This function is helpful when we want to load any jQuery plugins before the execution of ready event.
For example
$.holdReady(true);
$.getScript("xyzplugin.js", function()
{
$.holdReady(false);
});
Download JQuery Programmer Interview Questions And Answers
PDF
Previous Question | Next Question |
What are the various ajax functions? | How do you stop the currently-running animation? |