Whatfix Interview Question

Difference between async and defer?

Interview Answer

Anonymous

Jul 13, 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.