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

I see.

I like the `whenCreated`. I wlnder now. Is this a callback or a DOM event we `addEventListener` from the local document realm? Or it's a method sibling to [CustomElementRegistry.whenDefined](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/whenDefined), to act when it is seen in the DOM for the first time, and the UA sees there's no such element, so we can intercept and tell where to get the implementation.  

With this, if there's a problem getting the implementation, a retry mechanism, I agree with  @uasan and @EisenbergEffect. Maybe an exponential backoff be useful there too. When a UA becomes offline, we might not want to eat up resources retrying.




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

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

Received on Wednesday, 26 April 2023 19:58:57 UTC