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

What is jquery a client or server scripting?

815


How to execute jQuery code after the DOM is ready?

831


Define the use of each function in jquery?

794


Mention the differences between javascript and jquery.

791


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

858


Tell me what does dollar sign ($) means in jquery? : jquery mobile

810


Why is jquery better than javascript?

973


Tell me how to select combobox select value and text using jquery?

849


How to run an event handler only once in jQuery?

901


Is jQuery is a client or server scripting?

859


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

821


Explain the use of data-role=”page” attribute? : jQuery Mobile

824


What are the various ajax functions available in jquery ?

736


Define data paremeter of jquery ajax method?

811


What is .siblings() method in jquery?

846