if(/MSIE \d|Trident.*rv:/.test(navigator.userAgent)) { console.info('polifills'); var scriptElement; scriptElement = document.createElement('script'); scriptElement.type = 'text/javascript'; scriptElement.src = 'vendor/ie11-polyfills.min.js'; document.head.appendChild(scriptElement); var scriptElement2; scriptElement2 = document.createElement('script'); scriptElement2.type = 'text/javascript'; scriptElement2.src = 'vendor/fetch-polyfill.min.js'; document.head.appendChild(scriptElement2); }