Friday, April 15, 2011

Document.ready() vs Onload ()

Document.ready() onload()
JqueryNormal JS function
calls as soon as DOM id loadedcalls when everything gets loaded on the page that includes DOM, images and all associated resources of the page
We can have as many as
document.ready()
onload function is limited on one time
Fasterslow compared to .ready()


No comments: