Re: [WICG/webcomponents] connectedCallback timing when the document parser creates custom elements (#551)

Solution for this problem is pretty simple, all one has to do it wrap `connectedCallback` in `window.requestAnimationFrame` and you will always have all children available.

I am pretty sure this is faster then any other proposed solution, as `setTimeout # 0` and similar.

More in my answer here
https://stackoverflow.com/questions/70949141/web-components-accessing-innerhtml-in-connectedcallback/75402874#75402874

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

Message ID: <WICG/webcomponents/issues/551/1424638706@github.com>

Received on Thursday, 9 February 2023 18:31:42 UTC