Browser & Web Performance · Junior · Question 10 of 75
How does <script type="module"> load by default?
- 1Only when the user interacts with the page
- 2Like a classic blocking script
- ✓Correct answer: Like
defer: it doesn't block parsing and runs after the document is parsed
Explanation
Module scripts are deferred by default. Adding async makes them run as soon as they and their imports are ready.