Pergunta de entrevista da empresa Whatfix

Difference between async and defer?

Resposta da entrevista

Sigiloso

13 de jul. de 2020

Each async script executes at the first opportunity after it is finished downloading and before the window's load event where as defer script executes after parsing of entire html on the page.