What does the defer attribute on a script tag do?
- A Downloads the script in parallel and executes it after HTML parsing completes
- B Prevents the script from loading
- C Executes the script immediately, blocking the parser
- D Loads the script only on user interaction
Answer
Downloads the script in parallel and executes it after HTML parsing completes
defer preserves execution order and runs before DOMContentLoaded. async also downloads in parallel but executes as soon as it arrives, in no guaranteed order.





