By Tim Evko

Watch: Performance with requestAnimationFrame

By Tim Evko

Animation in JavaScript can be difficult to create, and even harder to optimize for performance. Learn how to get better at both with requestAnimationFrame! The demonstration from this screencast can be found in Codepen. You can find the mentioned link from the screencast here:

This is the first video of the series JS with Performance in Mind.

Loading the player…


  • The Codepen link is incorrect. Pointing to a different example, the “ADD SAVE AS IMAGE FUNCTION”

    • Tim

      Sorry Danny, I sent an email to the editor. Here’s the correct link –

    • Angela Molina

      Hey Danny, thanks for picking up on that. Got that fixed for you now.

  • Thanks for the video :) Might have to play around with it.

Get the latest in JavaScript, once a week, for free.