optimize render reflows
Closed this issue · 1 comments
jantimon commented
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
Dom update: 1547.678ms
Snugug commented
Ahh, I understand the difference with what you're doing now. Please issue a PR so I can bring it in!