1.

When does the browser stop rendering the HTML?(a) Inline JavaScript block(b) External JavaScript file(c) Both Inline JavaScript block & External JavaScript file(d) External HTML fileThis question was addressed to me during an interview.My doubt is from Page Render BottleNecks Optimization in portion Invocation and Performance Navigation of JavaScript

Answer» RIGHT CHOICE is (c) Both Inline JavaScript block & External JavaScript file

Easy explanation: When the BROWSER parses the HTML markup, it stops rendering the HTML when it ENCOUNTERS an inline JavaScript block or external JavaScript file. At this point, the user experiences rendering delays.


Discussion

No Comment Found

Related InterviewSolutions