defer javascript file code example
Example 1: how to defer javascript script
<script src="script.js" defer></script>
Example 2: script deferred
<script src="demo_defer.js" defer></script>
<script src="script.js" defer></script>
<script src="demo_defer.js" defer></script>