Examveda
Examveda

Where is the external JavaScript placed in the case of lazy loading?

A. After window.onload event

B. Before window.onload event

C. All of the mentioned

D. None of the mentioned

Answer: Option A

Solution(By Examveda Team)

When we don’t need our JavaScript code to be available as soon as the page loads, we can script-load our external JavaScript after the window.onload event.

Join The Discussion

Related Questions on Invocation and Performance Navigation