adding of defer in js code example
Example: javascript defer
//A script that will not run until after the page has loaded
<script src="demo.js" defer></script>
//A script that will not run until after the page has loaded
<script src="demo.js" defer></script>