Prefer `defer` Over `async`

By seorocket / a couple of months ago
css-tricks

Steve Souders:

Comparing the ASYNC and DEFER waterfalls, we see that using DEFER makes DOM Interactive fire sooner and allows rendering to proceed more quickly.

Even though <script async></script> is more commonly seen in the wild, defer is typically preferable as they can never block other syncronous scripts, as well as load in predictable source order.

Direct Link to ArticlePermalink


Prefer `defer` Over `async` is a post from CSS-Tricks

About the author

seorocket

Leave a Reply

Be the First to Comment!

Notify of
avatar

wpDiscuz