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 get the type of arguments passed to a function?

790


What is method chaining in jquery?

745


Is it possible to use our own specific character in the place of $ sign in jquery? : jquery mobile

903


What is the latest version of jquery?

858


Explain deferred and promise object in jquery? : jquery mobile

751


Explain .on()? : jquery mobile

782


How we can select multiple elements in jquery?

790


What is jquery datepicker in jquery?

828


Explain the basic need to start with jquery? : jquery mobile

731


Why jQuery is better than JavaScript?

836


What is each() function in jQuery? How do you use it?

754


How to load a page using jquery mobile? : jquery mobile

751


How to programmatically trigger a click event that's being handled by jquery?

825


Define bind() and unbind elements in jQuery?

863


What is a cdn? : jQuery Mobile

820