Answers

Question and Answer:

  Home  Website Developer

⟩ Tell us what Is Difference Between <Window.Onload> And <OnDocumentReady>?

The <onload> event doesn’t invoke until the page gets finished loading of CSS and images. It could cause a significant delay in rendering of the web page.

As a web developer, we have to ensure the page should load as quick as possible. The event <onDocumentReady> lets us only wait for the DOM to initialize instead of delaying any action required.

 178 views

More Questions for you: