Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
var scripts = ['app.a700a9a3e91a84de5dc0.js']; // script for all users
var newBrowser = (
'fetch' in window &&
'Promise' in window &&
'assign' in Object &&
'keys' in Object
if (!newBrowser) {
scripts.unshift('polyfills.a700a9a3e91a84de5dc0.js'); // script for the less fortunate
scripts.forEach(function(src) {
var scriptEl = document.createElement('script');
scriptEl.src = src;
scriptEl.async = false;
Copy link

baskan commented Dec 26, 2016

cool shit 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment