Created
March 20, 2020 01:05
-
-
Save jnicol/87bf1a502367b9a05d005b9a4cc84875 to your computer and use it in GitHub Desktop.
polyfill.io for old browsers only
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
<!-- | |
Only load polyfills for old browsers | |
@see https://devhints.io/polyfill.io | |
@see https://polyfill.io | |
--> | |
<script>if(!(window.Promise&&[].includes&&Object.assign&&window.Map)){document.write('<script src="https://cdn.polyfill.io/v3/polyfill.min.js"></scr'+'ipt>')}</script> | |
<!-- Same as above, but also loads Fetch API polyfill --> | |
<script>if(!(window.fetch&&window.Promise&&[].includes&&Object.assign&&window.Map)){document.write('<script src="https://cdn.polyfill.io/v3/polyfill.min.js?features=default,fetch"></scr'+'ipt>')}</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment