If the script tag is above or below the body in a HTML page, does it matter for the performance of a website?
And what if used in between like this:
Performance of the script itself will definitely be the same.
The placement is important though, as explained in the article you linked, since the browser will "halt" (or "freeze") simultaneous downloads and rendering of the page when it encounters and loads the contents of a tag. So it's probably best to let the browser render the page and apply CSS styles, and then include your
.js
. It will look smoother to the user.
Also, including the script at the bottom probably means right before you close the tag.