Website Developer Question:
Download Job Interview Questions and Answers PDF
Tell us what Is Difference Between <Window.Onload> And <OnDocumentReady>?
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.
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 Question | Next Question |
Tell us how Does Canvas Differ From SVG? | Tell me what Is HTML5 Web Storage? |