Closed AntiMoron closed 7 years ago
Before loading the polyfill, you can use
window.requestAnimationFrame = window.requestAnimationFrame || window.webkitRequestAnimationFrame;
@ewilligers I think that's exactly what a polyfill should do...
How about
window.requestAnimationFrame = window.requestAnimationFrame || window.webkitRequestAnimationFrame || function(f) {setTimeout(f, 16);}
to make sure there's an implementation of requestAnimationFrame?
as post title.