Run This in Chrome Incognito Mode with DevTools Open
Generate DIVs with random text, double width of each DIV relative to text width
Method 1: Resize DIVs in same loop where they're created.
Method 2: Resize DIVs in separate loop, but get clientWidth of DIV and set width of DIV in same statement.
Method 3: Resize DIVs in separate loops: one to collect clientWidths, the other to set widths relative to them.
Method 4: Same as method 3, but wrapping each loop in a requestAnimationFrame.
Method 5: Same as method 4, except using FastDom to separate measurements from mutations.