Dabolus / polymer3-webpack-starter-kit

Polymer 3 Starter Kit with Webpack
MIT License
55 stars 6 forks source link

WebComponents polyfills not working (`window.customElements is undefined`) #68

Closed Dabolus closed 6 years ago

Dabolus commented 6 years ago

WebComponents polyfills are loaded asynchronously. This makes them load after our custom components, making them completely useless.

logicalphase commented 6 years ago

Those polyfills 😑

I'm beginning to think I may just add necessary scripting to prerender the best ES6 build through headless Chrome w/ Puppeteer. Cache the pages, and solve browser compatibility, performance, and Googlebot search indexing. 😁

On Wed, May 2, 2018, 4:29 PM Giorgio Garasto notifications@github.com wrote:

@Dabolus https://github.com/Dabolus Yes, this issue tracks what you reported on GitHub

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Dabolus/polymer3-webpack-starter-kit/issues/68#issuecomment-386127379, or mute the thread https://github.com/notifications/unsubscribe-auth/AYC27dcOYLxIaHcC3CjAbfyiK8Oe1i3Bks5tuiUbgaJpZM4TwL_Z .

Dabolus commented 6 years ago

Great idea! By the way, I fixed this issue by waiting for the WebComponentsReady event, that I should have done anyways. From now on I'm going to test new features on various browsers and not only on Chrome before releasing them 😜