An adaptation of the demo from the Google Developers article Diagnosing forced synchronous layouts. In the article, forced synchronous layouts are fixed by simply not doing any reads at all. Rather than this extreme 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.