async vs defer attributes
The difference between using async and defer attributes when calling javascript
Let’s start by defining what
An excerpt from async vs defer attributes<script>
without any attributes does. The HTML file will be parsed until the script file is hit, at that point parsing will stop and a request will be made to fetch the file (if it’s external). The script will then be executed before parsing is resumed.