- From: Andrea Giammarchi <notifications@github.com>
- Date: Tue, 07 May 2019 08:06:40 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 7 May 2019 15:07:02 UTC
> Mutation observer callbacks should in theory always happen before rendering. I didn't know this, meaning the following pattern should grant the element has been parsed, right? ```js constructor() { new MutationObserver((, mo) => { mo.disconnect(); this.finishedParsingChildrenCallback(); }).observe(this, {childList: true}); } ``` if that's the case, I might update my `html-parsed-element` library then, yet @rniwa concern on abusing MO all over will still be valid, and I wish myself there was a `finishedParsingChildrenCallback` or similar method for CE instantiation. -- 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/809#issuecomment-490120003
Received on Tuesday, 7 May 2019 15:07:02 UTC