requestAnimationFrame polyfillThis is designed to be run in a browser and it depends on there being a document. It does not work in a Node.js or worker environment.
or load as the Node.js module:
Download the latest requestAnimationFrame polyfill from GitHub.
npm install window.requestanimationframe
bower install window.requestanimationframe