| Difference between body.onload and document.ready in jQuery
body.onload
(1)We can use body.onload method only once in a page
(2)And this method is called once the resources of page are loaded.
(3)This method will be called once the images, css and DOM will be done.
document.ready
(1)we can use document.ready method many times in same page.
(2)This method is called once DOM is ready.
(3)This method is called once DOM is ready and will not wait till other resource are loaded. | | |