art icon indicating copy to clipboard operation
art copied to clipboard

Run requestAnimationFrame for no jank if a browser supports it

Open yunchancho opened this issue 7 years ago • 0 comments

Existing code always run setTimeout if running browser is not firefox. This causes jank issue in other major browsers except firefox. Furthermore this invalidates Time Slice feature which reactjs 16.x will provide for high framerate. This commit enables requestAnimationFrame to be run for major web browsers.

@sebmarkbage Could you review this PR?

yunchancho avatar Jun 02 '18 03:06 yunchancho