var ll = function (styleSheetUrls) { styleSheetUrls.forEach(function (el) { var l = document.createElement('link'); l.rel = 'stylesheet'; l.href = el; var h = document.getElementsByTagName('head')[0]; h.appendChild(l); }); }; var raf = requestAnimationFrame || mozRequestAnimationFrame || webkitRequestAnimationFrame || msRequestAnimationFrame; if (raf) { raf(function () { ll(styleSheetUrls) }); } else { window.addEventListener('load', function () { ll(styleSheetUrls) }); } -->