4 ms·
I always see suggestions to put script tags just before </body>, or the inline script that generates a new <script> node. Why does nobody ever suggest using the
by eridius 15y ago
I always see suggestions to put script tags just before </body>, or the inline script that generates a new <script> node. Why does nobody ever suggest using the defer attribute? My understanding is that the defer attribute will do precisely what you want - start loading the script now, but not blocking anything else on the page.