Re: [WICG/webcomponents] Lazy Custom Element Definitions (#782)

@justinfagnani I like the idea of the `whenCreated()` API as that enables a lot of flexibility for the application, which may need to treat that in a variety of different ways. In order to enable all the scenarios I know about, I would want that API to return the `HTMLUnknownElement` that was created so that things like event handlers and intersection observers could be attached. This would also enable reading attributes on the element which could provide metadata used to control the application-specific load behavior.

Additionally, this enables application-specific control of retries and similar behaviors, which @uasan brought up.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/782#issuecomment-1523901479
You are receiving this because you are subscribed to this thread.

Message ID: <WICG/webcomponents/issues/782/1523901479@github.com>

Received on Wednesday, 26 April 2023 18:59:01 UTC