Ezelia Posted October 25, 2013 Share Posted October 25, 2013 Hi all, many browsers now have native support for RequestAnimationFrame (RAF), but we still need polyfills for those browsers witch does not support it. Since there are so many implementations, I'd like to know witch one do you use ?from my searches this one seems to be the most used : https://gist.github.com/paulirish/1579671 but I also found this one : http://www.trajanmcgill.com/stronglytyped/post/2013/03/23/A-More-Robust-requestAnimationFrame-Polyfill have you experimented those or others ? Quote Link to comment Share on other sites More sharing options...
Alvin Posted October 25, 2013 Share Posted October 25, 2013 Hi, I've never seen the second, but the first is one of most used as it was one of the first ever created, It comes from blog post from back in 2011 :http://www.paulirish.com/2011/requestanimationframe-for-smart-animating/if you want to have a look at the original article. For me it really depends, I tend to use a modified version when I want to have control over the frame rate, and another when I need cancelAnimationFrame. Quote Link to comment Share on other sites More sharing options...
onefrankguy Posted October 26, 2013 Share Posted October 26, 2013 I like Darius Bacon's version. Mostly because it's small and up to date.https://github.com/darius/requestAnimationFrame Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.