Q. How can you defer script execution until the DOM is loaded?
β
Correct Answer: (A)
Use defer attribute in script tag
Explanation: defer delays script execution until after HTML is fully parsed.