2 ms·
> Best practice is to always add [async] or [defer] attributes. Can you give a reference for that? HTML5 Boilerplate, Yeoman's generator-webapp and Google's W
by callum85 12y ago
> Best practice is to always add [async] or [defer] attributes.
Can you give a reference for that?
HTML5 Boilerplate, Yeoman's generator-webapp and Google's Web Starter Kit do not come with these script attributes OOTB.
EDIT: ha I just noticed your username. Maybe you can tell me why those projects don't come with async script tags?
- paulirish 12y agoBecause we've been wimps. :) If you don't care about IE8 or IE9 you can use [defer]. [async] is always fine, but less attractive. But srsly [defer] is equivalent to [theresnodocumentwriteinhere].