Fill in the blank: Add the ________ attribute to your script to tell the browser to execute it after construction of the DOM.
Choose an answer
Tap an option to check your answer.
Correct answer: defer.
Why this is the answer
The correct attribute is defer because it tells the browser to download the script without blocking HTML parsing and execute it after the DOM has been constructed. HubSpot’s performance guidance specifically recommends async or defer for script loading, and defer is the option used when execution should wait until parsing is complete. This preserves document order for deferred scripts, which also makes it suitable for dependent scripts that must run after the page structure is available. The other listed attributes serve different purposes and do not provide this execution timing behavior. HubSpot Developers
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed