What is the difference between async and defer on script tag?
2022年5月1日小于 1 分钟
async
and defer
on script tag?
What is the difference between Question
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