I didn't find this anywhere, but what is the difference between the following two tags:
// Script tag w/out async and JUST the source attribute
<script src="script.js"></script>
// Script tag w/ async attribute (both ways of writing it shown)
<script src="script.js" async></script>
<script src="script.js" async="true"></script>
What's the difference between these two? How does it run in relation to the rest of an HTML page? And reading up about this from a page on DigitalOcian on async and defer has me more confused. I mean, defer
sounds like the equivalent of <body onload="function()">
but for scripts (and when the page itself loads). Assuming my understanding is correct, async
still confuses me.