- From: Steve Orvell <notifications@github.com>
- Date: Sun, 26 Apr 2026 06:35:44 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Sunday, 26 April 2026 13:35:48 UTC
sorvell left a comment (whatwg/dom#1463)
A use case
1. I have a template I'd like to render dynamically based on a route parameter.
2. it contains has custom elements, and I'd like to make sure they upgrade in document order to simplify potential initial event dispatch (a parent always see an event a child fires).
3. To be efficient, I want to render the DOM while the elements are loading and defining.
```js
// load elements
container.append(document.importNode(template.content, {customElementRegistry: null});
// elements loaded...
customElements.initialize(container);
```
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/1463#issuecomment-4322143871
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/dom/issues/1463/4322143871@github.com>
Received on Sunday, 26 April 2026 13:35:48 UTC