Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Is it possible to hold or delay document.ready execution for sometime?



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

Post New Answer

More jQuery Interview Questions

What is the difference between $(this) and 'this' in jquery?

0 Answers  


How to read cookies in jquery?

0 Answers  


What are the difference between empty(), remove() and detach() functions in jquery?

0 Answers  


How we can get the value of a radio button using jquery?

0 Answers  


How to check data type of any variable in jQuery?

1 Answers   Infoica Tech,


Can you include multiple version of jQuery? If yes, then how they are executed?

1 Answers  


How to programmatically trigger a click event thats being handled by jquery only?

0 Answers  


Tell me how to use migrate jquery plugin if possible? : jquery mobile

0 Answers  


Why do we need to go for JQuery?

0 Answers  


How to find all sibling elements in front of the current element using ?

0 Answers  


What is difference between $(this) and ‘this’ in jquery?

0 Answers  


What are the methods used to provide effects in jquery?

0 Answers  


Categories