1. After window.onload event
  2. Before window.onload event
  3. All of the mentioned
  4. None of the mentioned
4 views

1 Answers

Answer: Option 1

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.

4 views