Domanda di colloquio di Atlassian

What is the difference between script, script async and script defer?

Risposta di colloquio

Anonimo

21 nov 2024

script is the default that block the HTML until script loads, script async load in the background while HTML is parsing, as soon the script loads, it get executed while pausing the HTML meanwhile. the script defer, script load in the BG while the HTML is parsing, the script get executed after the HTML is fully loaded