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 answersof 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
Post a Comment