Jump to content

What RAF polyfill do you use ?


Ezelia
 Share

Recommended Posts

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 ?

 

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...