- From: Domenic Denicola <notifications@github.com>
- Date: Tue, 23 Aug 2016 15:01:32 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
Received on Tuesday, 23 August 2016 22:02:04 UTC
> For example to create an element that compute a sexy layout, its important to access to an initial state of children to avoid re-compute the layout many times(each time a new CE children is parsed) for just the first render... What I'd suggest doing is just resorting or re-rendering your children on every requestAnimationFrame. That way you will not only get the post-parsing batching behavior you desire, but you will also synchronize your work with when it's displayed to users. > So i understand we should avoid to use the children as some kind of setup data, but what is the main technical reason to not to do that ? I thought I explained why that was above, talking about how they are dynamic and can change any time, and this leads to complicated behavior. -- 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/551#issuecomment-241894524
Received on Tuesday, 23 August 2016 22:02:04 UTC