Good practices in calling javascript scripts

1

I have some pages that use specific javascript files / scripts and I do not include them in the site header, since not all pages would use them, I would like to know if it is good practice to include Js files / codes in distinct parts of the page without being in the header, what if this reduces the loading speed?

<header>

file.js - this will be included by all the pages that have the header

Another specific page:

<header>

<content>

file.js - including the js file in a separate part of the header on a specific page ...

    
asked by anonymous 14.07.2016 / 23:28

0 answers