Vidyalelo
JavaScript · Q41

Invocation And Performance Navigation

Programming · JavaScript · question 41

Q41

When does the browser stop rendering the HTML?

A.
Inline JavaScript block
B.
External JavaScript file
C.
Both Inline JavaScript block & External JavaScript file
Answer
D.
None of the mentioned

Answer: Option C

Solution

Answer: Option C
Solution:
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. Moving the JavaScript to the end of the HTML markup would completely eliminate these pauses in rendering.