The first difference between loading a script from a file and running a script from a script tag is that an additional HTTP request is required to load it. This is usually trivial, but you will get an increase in speed with a script embedded in the page. However, loading from an external file allows the script to be cached. Sounds like you can't rely on caching, though .
Now, I have to tell you that all of your hard-coded scripts on the page are not very manageable. If you want to update one of the scripts, but it is attached to a specific html file, it becomes much more difficult to update.
As for your second question, scripts are loaded in order. All external loading is blocked when loading scripts. Therefore, it is recommended that you place all of your script at the bottom of the <body> .
source share