DEV Community

Discussion on: 9 simple steps to optimize your web application performance

Collapse
 
tbroyer profile image
Thomas Broyer

Hmm, if you put your scripts at the bottom, then include a <link rel=preload> in the head; or put your scripts in the head but make them async or defer.

This of course depends how important your scripts are. For scripts that wouldn't dramatically change the page if they don't load (or load late), then sure put them at the bottom (and make them async so they don't defer the onload for other scripts; IIRC)