Created
May 12, 2017 20:20
-
-
Save MQuy/6cbe1a195998af4257a94ca1613f0032 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
<html lang="en"> | |
<head> | |
<link rel="preload" href="./vendor.js" as="script"> | |
<link rel="preload" href="./app.js" as="script"> | |
<body> | |
<main id="root" style="height: 100%"></main> | |
<script type="text/javascript"> | |
scripts = ['./vendor.js','./app.js']; | |
if (!("fetch" in window && "Promise")) { | |
scripts.unshift('./polyfills.js'); | |
} | |
scripts.forEach(function(src) { | |
var scriptEl = document.createElement('script'); | |
scriptEl.src = src; | |
scriptEl.async = false; | |
document.head.appendChild(scriptEl); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment