- From: Frank Topel <notifications@github.com>
- Date: Fri, 09 Nov 2018 09:08:32 +0000 (UTC)
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 9 November 2018 09:09:02 UTC
@Jamesernator > Just defer the customElements.define call until DOMContentLoaded Imo that's a bad idea for at least two reasons: a) it won't solve problems related to dynamic creation/updating of element via e.g. morphdom, and, even more important, b) it will disallow for people using your components to register their own listeners which they'd usually do on `DOMContentLoaded`. That would introduce a mess of `customElements.whenDefined()` callbacks (where all the consumer of the components usually wants is a `webcomponentsReady()` callback mechanism). -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/662#issuecomment-437296283
Received on Friday, 9 November 2018 09:09:02 UTC