DEV Community

Discussion on: Async vs Defer in JavaScript: Which is Better?🤔

Collapse
 
dagnelies profile image
Arnaud Dagnelies • Edited

I find the article misleading because it's not "vs". You can use both defer and async together, they don't exclude each other since they are unrelated. Defer is to wait for the page dom first, async is when other scripts don't need to wait for it.