A

Admin • 833K Points
Coach

Q. How can you defer script execution until the DOM is loaded?

  • (A) Use defer attribute in script tag
  • (B) Use async attribute
  • (C) Put script at the top
  • (D) Wrap code in alert()
  • Correct Answer - Option(A)
  • Views: 28
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

defer delays script execution until after HTML is fully parsed.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.