Snugug/eq.js

optimize render reflows

Closed this issue · 1 comments

As I have written in twitter before there is a huge performance issue if you mix dom read and write statements.

I wrote a quick fix to demonstrate possible performance gains:
source code

To the the differences go to the following examples, open your developer toolbar and resize the browser.
Modified version

Dom update: 15.518ms

Original version

Dom update: 1547.678ms

Ahh, I understand the difference with what you're doing now. Please issue a PR so I can bring it in!