Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

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

  2. A.

     After window.onload event

    B.

     Before window.onload event

    C.

     All of the mentioned

    D.

     None of the mentioned

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    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.


Be The First To Comment