Re:Google HTML/CSS Style Guide – Omit Optional Tags
by tedmiston on Saturday September 17, 2016 @12:14PM
(#12521086)
I've been sleeping on best practices here... is it preferred to do a script with defer in the <head> over putting it at the bottom of the <body> now?
[ Parent
| on HN ]
Re:Google HTML/CSS Style Guide – Omit Optional Tags
by Sidnicious on Saturday September 17, 2016 @01:05PM
(#12521304)
I'd say yes. Defer-in-<head> works just like bottom-of-<body>, except the browser can start downloading and parsing the scripts right away (and in parallel if it wants).
Re:Google HTML/CSS Style Guide – Omit Optional Tags
by angry-hacker on Saturday September 17, 2016 @12:19PM
(#12521111)
Doesn't matter much with defer or async. If you but the at the bottom, they start loading in parallel slightly later.