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 we can get the input value of an element using jquery?

760


Is jquery html() method works for both html and xml documents?

784


What are the methods used to provide effects in jquery?

689


Can we call C# code behind using jQuery?

812


Why do we use jquery? : jquery mobile

752


How to disable/enable an element in jquery?

845


What programming language does jquery use?

758


What is event.stoppropagation? : jquery mobile

789


Explain the use of the .pushstack() method.

781


What is the use of queue() in jquery?

770


Is jQuery is a client or server scripting?

807


Can you please explain the difference between .js and .min.js? : jquery mobile

690


Explain data paremeter of jquery ajax method?

6876


How can jquery library be added to pages?

805


How to submit a form without submit button using jquery?

753