Skip to content

Instantly share code, notes, and snippets.

@FelisPhasma
Created September 16, 2014 22:06
Show Gist options
  • Save FelisPhasma/f5312fb67f54c52e53e7 to your computer and use it in GitHub Desktop.
Save FelisPhasma/f5312fb67f54c52e53e7 to your computer and use it in GitHub Desktop.
requestAnimationFrame
window.requestAnimationFrame = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(callback){
window.setTimeout(callback, 16.6);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment