Web Performance Quiz
Question
Which attribute on a <script> tag tells the browser to download the script without blocking HTML parsing?
Hint
There are two such attributes; this one preserves script order.
Explanation
Both 'defer' and 'async' allow non-blocking downloads. 'defer' downloads the script in parallel but waits to execute until HTML parsing is complete, preserving script order. 'async' executes as soon as the download finishes, potentially out of order. 'lazy' is for images, not scripts.
Related Resources
Related Lessons
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.