You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var webComponentsSupported = (
'registerElement' in document
&& 'import' in document.createElement('link')
&& 'content' in document.createElement('template')
);
// Load webcomponentsjs polyfill if browser doesn't support native Web Components.
if (!webComponentsSupported) {
var script = document.createElement('script');
script.async = true;
script.src = 'bower_components/webcomponentsjs/webcomponents-lite.min.js';
script.onload = onload;
document.head.appendChild(script);
}
The text was updated successfully, but these errors were encountered:
On Chrome have this polyfill unnecessarily size 15KB.
https://github.com/web-animations/web-animations-js
Load script on demand like as this code...
The text was updated successfully, but these errors were encountered: