requestAnimationFrame polyfill by Erik Möller.
Polyfill for requestAnimationFrame and cancelAnimationFrame. That is, load the included .js file to make those functions work (more or less) even on older systems that do not natively supply them.
This version of the code is only lightly tested. It's provoked no complaints since the initial checkin of 2013-9-16, but it hasn't been deliberately tested on a zillion targets either.
Adapted from https://gist.github.com/paulirish/1579671 which is derived from:
- Incorporate improvements from:
Pull requests welcome. Please respect the code style in place.