Comparing two ways to load non-critical CSS
▻https://gist.github.com/scottjehl/87176715419617ae6994
“I wanted to figure out the fastest way to load non-critical CSS so that the impact on initial page drawing is minimal.”
Comparing two ways to load non-critical CSS
▻https://gist.github.com/scottjehl/87176715419617ae6994
setTimeout(function() {
Array.prototype.slice.call(document.head.querySelectorAll('link[media="only x"]'))
.forEach(function(link) {
link.setAttribute('media', 'screen');
});
});
“I wanted to figure out the fastest way to load non-critical CSS so that the impact on initial page drawing is minimal.”