I often see articles, posts and comments something like:
- globals are bad in javascript
- script tags should be at bottom of page
- CSS should be in external files and at the top of page
- scripts should be in external files, not plain script-tags.
- etc.
I’ve looked up the HTML source of some big sites and have noticed that they have a lot of plain javascript and CSS inside HTML markup. JavaScript and HTML are note always obfuscated, and so on.
There are quite a few separate issues here.