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?

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


Please Help Members By Posting Answers For Below Questions

How can you delay document.ready until a variable is set?

849


Please tell us that is jquery knockkout intended to compete with jquery or prototype or work with it?

792


Define type paremeter of jquery ajax method?

815


How to revert the most recent ‘destructive’ operation, changing the set of matched elements to its previous state using ?

873


How can images be made to appear scrolling one over another?

871


How we can select multiple elements in jquery?

873


What is the difference between $(window).load and $(document).ready?

840


Can you write a code to select all links inside the paragraph?

892


Can you use any other name in place of $ (dollar sign) in jQuery?

852


What is the difference between onclick and onsubmit?

898


How do you check or uncheck a checkbox input or radio button?

957


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

6491


How to create, read and delete cookies with jquery?

949


How to disable/enable an element in jquery?

963


What is method chaining in jquery and what are the advantages?

903