I am building a Rails app, and it seems that common practice is to have javascript_include_tags listed on top of a page.
Would it makes browers load javascript before loading the document, and thus makes visible elements take longer to load?
Thank you.
Looks like some answers were right, but none sums it all up:
</body>tag. Which usually means a few characters before the end of your HTML page.Also, you don’t have to care about
$(document).ready()orwindow.onload, since all your HTML elements will be loaded before the javascript files (that is, if you put the JS files right before the closing</body>tag).