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

Difference between $(this) and 'this' in jQuery?

1 Answers  


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?

0 Answers  


How to delete cookies in jquery?

0 Answers  


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?

0 Answers  


How can we apply css in odd childs of parent node using jquery library?

0 Answers  


Explain .siblings() method in jquery?

0 Answers  


What is chaining in jQuery?

1 Answers  


Explain the concepts of "$ function" in jquery with an example?

0 Answers  


List the basic selectors in jquery?

0 Answers  


Tell me which program is useful for testing jquery?

0 Answers  


How to add a class to html element?

0 Answers  


How do I pull a native DOM element from a jQuery object?

0 Answers   MCN Solutions,


Categories