javascript - Are there any disadvantages to putting all script tags at the end of the body tag? -



javascript - Are there any disadvantages to putting all script tags at the end of the body tag? -

this question has reply here:

where best place set <script> tags in html markup? 13 answers

of course, there's issue of loading times. that's why putting javascript @ end of html has been recommended.

however, there cases shouldn't done? there disadvantages method?

afaik, there disadvantages in specialized cases. example, if you're using javascript load web fonts, may want necessary requests started asap. adam beres-deak had post on recently.

for run of mill javascript code, though, there aren't disadvantages.

javascript html html5 web

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -