Last active
September 6, 2018 12:15
-
-
Save jacoduplessis/ed122b53f8ee473e65692812e4b9b556 to your computer and use it in GitHub Desktop.
Load Promise and Fetch polyfills conditionally (updated 8 Jan 2016)
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
<script> | |
window.Promise || document.write('<script src="https://unpkg.com/[email protected]/dist/es6-promise.min.js"><\/script>'); | |
window.fetch || document.write('<script src="https://unpkg.com/[email protected]/fetch.js"><\/script>'); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment