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
{{ message }}
This repository was archived by the owner on Sep 20, 2019. It is now read-only.
-`Event`, `CustomEvent`, `MouseEvent` constructors and `Object.assign`, `Array.from` (see [webcomponents-platform](https://github.com/webcomponents/webcomponents-platform))
16
+
12
17
## How to use
13
18
14
19
The polyfills are built (concatenated & minified) into several bundles that target
15
20
different browsers and spec readiness:
16
21
17
-
-`webcomponents-hi` -- HTML Imports (needed by Safari Tech Preview)
18
-
-`webcomponents-hi-ce` -- HTML Imports and Custom Elements (needed by Safari 10)
19
-
-`webcomponents-hi-sd-ce` -- HTML Imports, Custom Elements and Shady DOM/CSS (needed by Safari 9, Firefox, Edge)
20
-
-`webcomponents-sd-ce` -- Custom Elements and Shady DOM/CSS (no HTML Imports)
21
-
-`webcomponents-lite` -- all of the polyfills: HTML Imports, Custom Elements, Shady DOM/CSS and generic platform polyfills (such as Template, ES6 Promise, Constructable events, etc.) (needed by Internet Explorer 11)
22
+
-`webcomponents-hi.js` -- HTML Imports (needed by Safari Tech Preview)
23
+
-`webcomponents-hi-ce.js` -- HTML Imports and Custom Elements (needed by Safari 10)
24
+
-`webcomponents-hi-sd-ce.js` -- HTML Imports, Custom Elements and Shady DOM/CSS (needed by Safari 9, Firefox, Edge)
25
+
-`webcomponents-sd-ce.js` -- Custom Elements and Shady DOM/CSS (no HTML Imports)
26
+
-`webcomponents-lite.js` -- all of the polyfills: HTML Imports, Custom Elements, Shady DOM/CSS and generic platform polyfills (such as ES6 Promise, Constructable events, etc.) (needed by Internet Explorer 11), and Template (needed by IE 11 and Edge)
22
27
23
-
If you are only targetting a specific browser, you can just use the bundle that's
24
-
needed by it; alternatively, if you're using server-side rendering, you can
25
-
send the polyfill bundle that's necessary for the browser making that request.
28
+
If you are only targeting a specific browser, you can just use the bundle that's
29
+
needed by it; alternatively, if your server is capable of serving different assets based on user agent, you can send the polyfill bundle that's necessary for the browser making that request.
26
30
27
31
## `webcomponents-loader.js`
28
32
29
33
Alternatively, this repo also comes with `webcomponents-loader.js`, a client-side
30
-
loader that dynamically loads the correct polyfill bundle, using feature detection.
34
+
loader that dynamically loads the minimum polyfill bundle, using feature detection.
31
35
Note that because the bundle will be loaded asynchronously, you should wait for the `WebComponentsReady` before you can safely assume that all the polyfills have
32
36
loaded and are ready to be used (i.e. if you want to dynamically load other custom
0 commit comments