I believe javascript can be anywhere (almost), but I almost always see it in between . I am using jquery and wanted to know if it has
Basically, browsers stop rendering page until .js
files are completely downloaded and processed. Since they render page progressively as HTML arrives, the later .js
files are referenced, the better user experience will be.
So the trick is to include only absolutely crucial scripts in the head
, and load remaining ones towards the end of the page.