When exactly is a script loaded and when is it executed? How do the async
and defer
attributes affect it? What about modules? This overview/cheatsheet sums it up nicely:
The cheatsheet was extracted from this tweet by Addy Osmani
A rather geeky/technical weblog, est. 2001, by Bramus
script
tagsWhen exactly is a script loaded and when is it executed? How do the async
and defer
attributes affect it? What about modules? This overview/cheatsheet sums it up nicely:
The cheatsheet was extracted from this tweet by Addy Osmani