Re: [WICG/webcomponents] [declarative-custom-elements] how does the class get associated with the definition (#884)

I just wanted to throw out the possibility that we could morph server rendered HTML that is rendered into the live DOM tree into a "template" for a web component that could be used by other single tags.  An example of how this could be useful:  A server-rendered side nav component used for the hamburger menu.  Then it could "progressively" be used to define the web component.  Another example would be a slide show web component, where we want to display the initial slide before all the dependencies have been loaded.

POC [here](https://github.com/bahrus/be-definitive).

I think the performance would be better, especially if the JavaScript may have numerous dependencies that need to load before the web component could become active.

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

Message ID: <WICG/webcomponents/issues/884/1503949607@github.com>

Received on Tuesday, 11 April 2023 19:02:40 UTC