: Placing javascripts at the page's bottom and HTTP/2 Does the placement of javascripts at the bottom of html document still gives any loadtime wins, if the site runs on HTTP/2?
Does the placement of javascripts at the bottom of html document still gives any loadtime wins, if the site runs on HTTP/2?
More posts by @Eichhorn148
1 Comments
Sorted by latest first Latest Oldest Best
The purpose of putting javascript at the bottom was to make sure the document was loaded before letting javascript interact with the web page. Performance had little if anything to do with it.
HTTP/2 has nothing to do with inlined javascript anyway unless you mean you were placing your loading script at the bottom, meaning <script src=""></script>. In that case, you are actually losing performance by not letting the browser jump on downloading the script right away by putting it in the <head>.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.