Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(function() {
var css =
[ '/css/default.css'
, '/css/section.css'
, '/css/custom.css'
]
, i = -1
, link = document.createElement( 'link' )
, head = document.getElementsByTagName( 'head' )[0]
, tmp
link.rel = 'stylesheet'
while ( css[++i] ) {
tmp = link.cloneNode();
tmp.href = css[i];
head.appendChild( tmp );
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment