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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly