Defer and Async Scripts
Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.
The problem
- medium
- Pro
A script in the page's head can't find the elements it needs, and the page also appears blank for a moment while it downloads. Explain how script tags block the HTML parser, and how the defer and async attributes and module scripts change that.
Talk this problem through with an AI coach
This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.