On 02/12/2014 03:41 AM, Ryosuke Niwa wrote:
Hi,

I’m bringing this up out of:

[Custom]: enteredView and leftView callbacks are still confusing
https://www.w3.org/Bugs/Public/show_bug.cgi?id=24314

Could someone clarify exactly why mutation observers can’t satisfy use cases 
for custom elements?

I strongly believe that we should extend mutation observers (e.g. add some flag 
to fire more eagerly) so that we could *explain* these callbacks in terms of 
mutation observers.

- R. Niwa




Doesn't the web component stuff want to be notified way before mutation 
observer callbacks are called (end of microtask)
This new stuff would be called right before some dom method call returns (I 
think someone mentioned 'nanotask').


We could add some scheduling thing to mutation observers. By default we'd use 
microtask, since that tends to be good
for various performance reasons, but normal tasks or nanotasks could be 
possible too.



-Olli




Reply via email to