What is jQuery.holdReady() function?

devquora
devquora

Posted On: Feb 22, 2018

 

The holdReady() function in jQuery is used to delay the ready event. If you want to load additional jQuery plugins before the execution of the DOM element even though they are ready, this method is used. It is called early in the document in the tag. Events that have already fired before calling this method will not be affected.

Example

$.holdReady( true );
$.getScript( "myplugin.js", function() {
  $.holdReady( false );
});

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    jQuery Interview Questions

    What is jQuery?

    jQuery is a lightweight JavaScript library which gives a quick and simple method for HTML DOM traversing and manipulati..

    jQuery Interview Questions

    What are the advantages of JQuery ?

    There are many advantages of JQuery. Some of them are :It is more like a JavaScript enhancement so there is no overhea..

    jQuery Interview Questions

    What are the different type of selectors in Jquery?

    There are 3 types of selectors in JqueryCSS Selector XPath Selector Custom Selector..