Fault detected in the code example on Google's web page
Optimize CSS Delivery as of 2016-01-28.
The code displayed in the third box from top has the following fault. The line:
var h = document.getElementsByTagName('head')[0]; h.parentNode.insertBefore(l, h);
would cause the newly created link element to be inserted as a child to the <html> tag,
instead of as a child to the <head> tag. It is suspected that the code line should read:
var h = document.getElementsByTagName('head')[0]; h.insertBefore(l, null);
In addition, it is recommended to supplement the code example to show how to deal with
browsers that have no JavaScript support or have their JavaScript disabled.
In the <head> tag, add the <noscript> tag, like so:
<head>
...
<noscript>
<link rel="stylesheet" type="text/css" href="small.css">
</noscript>
...
</head>
Cheers!