Use requestAnimationFrame instead of setTimeout
All animations in Highcharts use setTimeout. A new feature, requestAnimationFrame (https://developer.mozilla.org/en/DOM/window.mozRequestAnimationFrame) optimize all animations (CSS3, SVG, JS) to have a smooth rendering.
More explanation : http://paulirish.com/2011/requestanimationframe-for-smart-animating/
36
votes
![](https://secure.gravatar.com/avatar/343dbed7845520d39612e64c8eff99a3?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
Added in the code base for Highcharts 6: https://github.com/highcharts/highcharts/commit/7ad0d20b5c3197286e859ef830316f47187cfcc0
-
Anonymous commented
Any example of using requestAnimationFrame here?