wilsonpage/fastdom — pull request #25 by georgecrawford (2013-10-08 09:44:31+00:00)
Title: Add an example use case for animation

See example at http://georgecrawford.github.io/fastdom/examples/animation.html. It's an adaptation of the Google Developers article (https://developers.google.com/chrome-developer-tools/docs/demos/too-much-layout/). In the article, forced synchronous layouts are fixed by simply not doing any reads at all. Rather than that brutal solution, which will not be appropriate for many use cases, we instead use fastdom to intelligently defer and batch the DOM reads and writes, and get similar performance gains as a result.