DEV Community

Discussion on: 15 HTML5 best practices for beginners to master.

Collapse
 
siddiqnx profile image
Siddiq Nx

The scripts get downloaded as and when the parser encounters them. So having them in head will start downloading them earlier. Scripts that is important for user interaction can be put in the head with async or defer. Scripts like analytics etc. can be included at the end as it could take up potential download bandwidth needed for other important resources like CSS etc. if included earlier.