Nice reminder. I've never been sure what a smart use-case is for async, it seems like defer is almost always the more appropriate choice on a webpage so the HTML can finish parsing before any JS executes.
async
defer
I've never come across a use-case where I'd use async :p
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nice reminder. I've never been sure what a smart use-case is for
async
, it seems likedefer
is almost always the more appropriate choice on a webpage so the HTML can finish parsing before any JS executes.I've never come across a use-case where I'd use async :p