Skip to content

Instantly share code, notes, and snippets.

Created March 20, 2020 01:05
What would you like to do? for old browsers only
Only load polyfills for old browsers
<script>if(!(window.Promise&&[].includes&&Object.assign&&window.Map)){document.write('<script src=""></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=",fetch"></scr'+'ipt>')}</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment