Created
June 1, 2017 19:31
-
-
Save jadjoubran/daf422f03d29cb42d3bc89e689f7cfdf to your computer and use it in GitHub Desktop.
This file contains 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
const fetchPolyfill = 'https://rawgit.com/github/fetch/master/fetch.js'; | |
const fetchReady = promyfill('fetch' in window, fetchPolyfill); | |
fetchReady.then(() => { | |
fetch('users.json'); | |
}); | |
//other application logic | |
fetchReady.then(() => { | |
fetch('settings.json'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment