Skip to content

Conversation

mbonaci
Copy link
Contributor

@mbonaci mbonaci commented Dec 7, 2015

Although called on a single element, getComputedStyle forces layout thrashing/reflow: https://gist.github.com/paulirish/5d52fb081b3570c81e3a

Although called on a single element, getComputedStyle forces layout thrashing/reflow: https://gist.github.com/paulirish/5d52fb081b3570c81e3a
@etpinard
Copy link
Contributor

etpinard commented Dec 7, 2015

@mbonaci 🍻 Thanks for doing this.

etpinard added a commit that referenced this pull request Dec 7, 2015
Optimize by calling window.getComputedStyle once
@etpinard etpinard merged commit ca7c598 into plotly:master Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants