News for hackers. Stuff that matters.
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?
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.
Re:Google HTML/CSS Style Guide – Omit Optional Tags by ec109685 on Saturday September 17, 2016 @01:43PM (#12521507)
Which could be a good thing or bad thing depending on its importance to the experience.