2
0
mirror of https://github.com/iconify/iconify.git synced 2024-11-16 17:45:09 +00:00
iconify/samples/delayed-polyfill.js
2017-02-22 17:25:57 +02:00

14 lines
458 B
JavaScript

console.log('Delaying polyfill by 10 seconds');
setTimeout(function() {
var url = '//cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/0.7.24/webcomponents-lite.min.js',
element;
element = document.createElement('script');
element.setAttribute('src', url);
element.setAttribute('type', 'text/javascript');
element.setAttribute('async', true);
console.log('Loading polyfill');
document.head.appendChild(element);
}, 10000);