.. / polyfills
Star Fork

The Web Components polyfills are a suite of JavaScript libraries that implement Web Components APIs for browsers that don’t have built-in support.

polyfills
webcomponents
...

Latest

<img> @src @name ⏱️ before-load
More information

Root Cause

Source: https://github.com/webcomponents/polyfills/blob/16a0a1e87f67c2604381b904b4edd8cd112e5b04/packages/webcomponentsjs/webcomponents-loader.js#L114

var polyfills = [];
if (
  !(
    'attachShadow' in Element.prototype && 'getRootNode' in Element.prototype
  ) ||
  (window.ShadyDOM && window.ShadyDOM.force)
) {
  polyfills.push('sd');
}
if (!window.customElements || window.customElements.forcePolyfill) {
  polyfills.push('ce');
}

Source: https://github.com/webcomponents/polyfills/blob/16a0a1e87f67c2604381b904b4edd8cd112e5b04/packages/webcomponentsjs/webcomponents-loader.js#L190

if (window.WebComponents.root) {
  url = window.WebComponents.root + polyfillFile;
  if (
    window.trustedTypes &&
    window.trustedTypes.isScriptURL(window.WebComponents.root)
  ) {
    url = policy.createScriptURL(url);
  }
}

Related links:

Found by jackfromeast, ishmeals.


≤1.3.3

<link> @rel @href 🛡️ strict-dynamic ⏱️ before-load

Related links:

Found by @slekies, @kkotowicz, @sirdarckcat.


Source | History