Re: [w3c/webcomponents] [feature request] change when upgrade/connected happens during parsing, so that it is the first event in the following microtask (#787)

Is there a pattern you'd recommend in particular for working with children?

I'm thinking about having children emit an event to tell parents they are ready (in those children's `connectedCallback`).

If MutationObserver would fire `connected` during parsing, that could help too, as I already have that in place for future connected/disconnected children.

> sidenote: As @rniwa mentioned there too, I hadn't thought about the parser pausing while waiting for the network: in this case it can be paused on an opening tag of a custom element, after having upgraded it and called its `connectedCallback`, without knowing if markup for a possible child element will ever arrive.

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

Received on Tuesday, 29 January 2019 05:22:05 UTC