shutterstock / rickshaw

JavaScript toolkit for creating interactive real-time graphs
https://shutterstock.github.io/rickshaw
MIT License
6.53k stars 939 forks source link

wrap style access to prevent unnecessary reflow #609

Closed Jack-Q closed 6 years ago

Jack-Q commented 6 years ago

When the width and height are all explicitly specified, prevent access to calculated style can reduce an expansive reflow operation, which may reduce tens of milliseconds of redder time for a complex page.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.06%) to 62.933% when pulling a867c89a5c97575273c6a60cf980d920b01d633e on Jack-Q:master into 7689e12e9d1f7177d607c347f3a26b1efb0455b8 on shutterstock:master.