It is always recommended to avoid inline Javascript codes by putting all codes in a JS file, which is included in all pages. I wonder, if this does not cause pe
JS
IMO it depends on the page. Sometimes for a specific page and script is small, it does not make sense to put in an external file.