Re: [WICG/webcomponents] Need a callback for when children changed or parser finished parsing children (#809)

Someone suggested `requestAnimationFrame` to callback when `parser finished parsing children`.
```js
  connectedCallback() {
    window.requestAnimationFrame(()=>{
  this.querySelectorAll("input") // or whatever chlidren-specific operation
    })
  }
```

is this a good solution? seems straightforward and ultra-simple.

Source:
https://github.com/WICG/webcomponents/issues/551#issuecomment-1424638706


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

Message ID: <WICG/webcomponents/issues/809/1455481698@github.com>

Received on Monday, 6 March 2023 05:30:21 UTC