Created
August 23, 2015 19:56
-
-
Save gettocat/a3a1c5f21a999659acb6 to your computer and use it in GitHub Desktop.
require_async_static.js
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
function loadCss(e) { | |
var t = document.createElement("link"); | |
t.type = "text/css", t.rel = "stylesheet", t.href = e, document.getElementsByTagName("head")[0].appendChild(t) | |
} | |
function loadJs(e) { | |
var t = document.createElement("script"); | |
t.src = e; | |
var n = document.getElementsByTagName("head")[0]; | |
(n || document.body).appendChild(t) | |
} | |
!function(e) { | |
for (var t in e) | |
loadCss(e[t]) | |
}(["/assets/css/index.css", '/assets/css/index2.css']), function(e) { | |
for (var t in e) | |
loadJs(e[t]) | |
}(["/assets/js/main.js"]); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment