Calls requestAnimationFrame around the dimensions state update whenever the resize callback is fired. Should improve resizing speed somewhat, though it's not quite what I'd hoped for...
Which is why I've also added transform: translate3d(0, 0, 0) to the .App class' CSS. The presence of this rule makes many browsers switch to using the GPU for rendering.
Calls
requestAnimationFrame
around the dimensions state update whenever the resize callback is fired. Should improve resizing speed somewhat, though it's not quite what I'd hoped for...Which is why I've also added
transform: translate3d(0, 0, 0)
to the.App
class' CSS. The presence of this rule makes many browsers switch to using the GPU for rendering.