DEV Community

Discussion on: Loading scripts on your webpage

Collapse
 
tux0r profile image
tux0r • Edited

Potentially relevant (and proven quite useful): You can use <script defer="defer"> to load scripts after a page has loaded. (Beware that some of your scripts may still be asynchronous, so it is not guaranteed that all HTML elements can be accessed yet.)

Collapse
 
jochemstoel profile image
Jochem Stoel

Thanks