Most tutorials for jQuery recommend loading javascript before the closing body tag so that the rest of the page can load first. However the Zen theme (im not sure about others) doenst do this. Why is this the case?
1 Answer
Some contrib modules only work correctly if jQuery and other scripts are in <head>
.
Check out the Magic module or the AdvAgg module, which gives you greater control over how CSS and JS files are handled in your theme.