BFE.dev
Front-End Interview Questions119. What is the difference between `async` and `defer` on script tag?

119. What is the difference between `async` and `defer` on script tag?

Browser
Share

Common question to be asked, you need to first explain the that default script tag is parser blocking, and then how defer and async comes to rescue.

This article explains pretty well, and this article from google about critical rendering path is worth reading

prevnext
Request SolutionAIGreatFrontEndVideos(1)Posts(5)