Move scripts to the bottom

It's important to ensure that the javascript file doesn't block the rendering of the page. Often Javascript pages are pretty big, so it can take some time to load it.

But most javascript isn't executed on pageload, therefore at least the scripts that get used by onclicks and other events that may occur later as the pageload, can be put in the file that will be at the bottom.

This is only a rule you should apply to javascript. Putting CSS files at the bottom is not recommended. If you put CSS files at the bottom your browser will render the pages without javascript until it was able to load the CSS files. Then when the css files are ready your browser will have to redraw the page, which is not what we want.