by sync · 12y ago · 0 comments
Ember.JS (and possibly Angular?) does this for you automatically.
Dirty checking and watch execution happens in batches, but the resulting DOM updates are executed ad-hoc within each batch iteration - without any regard for requestAnimationFrame or forced synchronous layouts for instance.