Where is the external JavaScript placed in the case of lazy loading?
(a) After window.onload event
(b) Before window.onload event
(c) In the header tag
(d) In the HTML tag
(a) After window.onload event
(b) Before window.onload event
(c) In the header tag
(d) In the HTML tag
Right choice is (a) After window.onload event
The explanation: Lazy loading is a kind of loading in which we don’t need our JavaScript code to be available as soon as the page loads. 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.