Website Developer Question:

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

Tweet Share WhatsApp

Answer:

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.

Read All 80 Website Developer Questions
Previous QuestionNext Question
Tell us how Does Canvas Differ From SVG?Tell me what Is HTML5 Web Storage?