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