What is the significance of document.ready()?

 Posted by Niladri.Biswas on 7/19/2012 | Category: jQuery Interview questions | Views: 4001 | Points: 40

It indicates that the DOM of the page is ready and we can start manipulating the DOM elements even though other parts
of the page content(e.g. images/other external resources) are not fully loaded.As soon as the DOM is loaded,
everything inside the (document).ready() should be load even before the page contents are loaded.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response