Old JavaScript Notes

Include

<script src="main.js" async defer></script>

// defer - runs the js after the HTML has been loaded
// async - loads js in the background without disrupting HTML