Website Developer Question:

Download Job Interview Questions and Answers PDF

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

Website Developer Interview Question
Website Developer Interview Question

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.

Download Website Developer Interview Questions And Answers PDF

Previous QuestionNext Question
Tell us how Does Canvas Differ From SVG?Tell me what Is HTML5 Web Storage?