What Is Difference Between <Window.Onload> And <OnDocumentReady>

Casper

New Member
Hello Kajal,

The onload event does not fire until every last piece of the page is loaded, this includes css and images, which means there’s a huge delay before any code is executed.
That isnt what we want. We just want to wait until the DOM is loaded and is able to be manipulated. onDocumentReady allows the programmer to do that.

Cheers!
 
Top
  • award-img1
  • award-img2
  • award-img3
  • award-img4