Browser & Web Performance · Junior · Question 9 of 75

What's the difference between defer and async on a script?

Explanation

Both download without blocking the parser. defer suits app code that depends on order and the DOM; async suits independent scripts like analytics.

Further reading

Problem with a question

Browser & Web Performance · Junior · question 9

Test yourself

Take the Browser & Web Performance · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz