I was reading a tutorial and the author mentioned to include JavaScript files near the closing body
tag (</body>
) in HTML.
For what type of functionality should I not declare/define JavaScript include in the head
section? It makes sense to me include JavaScript like Google Analytics near the closing body
tag. Where should I be careful in defining JavaScript include near the closing body
tag?