Created
August 5, 2016 14:11
-
-
Save iegik/d18856e9627523e12ee1861367a39a05 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
src.map(function Link(href){ | |
var link = document.createElement('link'); | |
link.type = 'text/css'; | |
link.rel = 'stylesheet'; | |
link.href = href; | |
return link; | |
}).map(function(a){return a.outerHTML;}).join('\n') | |
src.map(function Script(src){ | |
var script = document.createElement('script'); | |
script.type = 'text/javascript'; | |
script.src = src; | |
script.setAttribute('async', true); | |
return script; | |
}).map(function(a){return a.outerHTML;}).join('\n') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment