Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ShadyCSS] Cannot load the polyfill async #33

Open
ebidel opened this issue Sep 16, 2016 · 2 comments
Open

[ShadyCSS] Cannot load the polyfill async #33

ebidel opened this issue Sep 16, 2016 · 2 comments

Comments

@ebidel
Copy link
Contributor

ebidel commented Sep 16, 2016

I'm trying to load the polyfills conditionally, async and am not able to shim styles.

http://jsbin.com/qaxifecapa/edit?html,output works in Canary, but not in other browsers.

If you uncomment the <script> tags in that jsbin that load the polyfills and replace this:

lazyLoadWCPolyfillsIfNecessary().then(function(events) {
  if (!supportsShadowDOMV1) {
    ShadyCSS.prepareTemplate(CardSwiper.template, CardSwiper.is);
  }
  window.customElements.define(CardSwiper.is, CardSwiper);
});

with:

ShadyCSS.prepareTemplate(CardSwiper.template, CardSwiper.is);
window.customElements.define(CardSwiper.is, CardSwiper);

then the demo works as expected.

@ebidel
Copy link
Contributor Author

ebidel commented Sep 16, 2016

Sometimes I get the error "window.customElements" is not defined. There seems to be a dep on CE in this polyfill.

@dfreedm dfreedm transferred this issue from webcomponents/shadycss Jun 7, 2019
dfreedm added a commit that referenced this issue Jun 11, 2019
Remove `classList` expectation for SVG in IE11
dfreedm pushed a commit that referenced this issue Jun 11, 2019
dfreedm pushed a commit that referenced this issue Jun 11, 2019
Fix instanceof for built-in elements.
@dfreedm dfreedm changed the title Cannot load the polyfill async [ShadyCSS] Cannot load the polyfill async Jun 12, 2019
@stale
Copy link

stale bot commented Apr 22, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Apr 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants