A
Q. Which attribute is used to specify that the script is executed when the page has finished parsing ( only for external scripts )
- Correct Answer - Option(C)
- Views: 18
- Filed under category JavaScript
- Hashtags:
A
The defer attribute ensures that an external script is executed only after the HTML document has been fully parsed. This prevents blocking the rendering process, improving page load performance.
Key Differences Between defer and async:
Why the other options are incorrect:
You must be Logged in to update hint/solution
Be the first to start discuss.
Discusssion
Login to discuss.