HTML script Flashcards
1
Q
When does the script download if the defer attribute is set in the <script>
tag?
A
Downloads when the script tag is hit.
2
Q
When does the script execute when the defer attribute is set in the <script>
tag?
A
Executes after the load and parser of the HTML.
3
Q
What order do the scripts run when the defer attribute is set on the <script>
tag?
A
Order is guaranteed from top to bottom.
Scripts downloaded first, but executed after load and parser of the HTML