what does script defer do js code example
Example 1: javascript defer
//A script that will not run until after the page has loaded
<script src="demo.js" defer></script>
Example 2: script deferred
<script src="demo_defer.js" defer></script>
//A script that will not run until after the page has loaded
<script src="demo.js" defer></script>
<script src="demo_defer.js" defer></script>