It was common suggestion years ago to prefer putting JavaScript into the footer of the page body to avoid blocking the rendering that happens if JavaScript is in the page head.
Now with async
and defer
script tag does it really matter where the JavaScript is?