Legal
// append ua string to body class attr for style scoping browsers
(function()
document.getElementsByTagName('body')[0].setAttribute('class', window.navigator.userAgent);
());
// defer loading stylesheets
var loadDeferredStyles = function()
var addStylesNode = document.getElementById("deferred-styles");
var replacement = document.createElement("div");
replacement.innerHTML = addStylesNode.textContent;
document.body.appendChild(replacement)
addStylesNode.parentElement.removeChild(addStylesNode);
;
var raf = requestAnimationFrame || mozRequestAnimationFrame ||
webkitRequestAnimationFrame || msRequestAnimationFrame;
if (raf) raf(function() window.setTimeout(loadDeferredStyles, 0); );
else window.addEventListener('load', loadDeferredStyles);