script tag defer is good code example Example: how to defer javascript script <script src="script.js" defer></script>