#1523·core-js

requestAnimationFrame polyfill

Author: johnzhou721Created Mar 16, 2026Updated Mar 19, 2026
Labelsenhancementweb standardshelp wanted

Is there plans to support requestAnimationFrame?

The polyfill plans, if planned I propose to be as follows---

  • Ancient webkit and firefox: redirect to mozRAF, webkitRAF (RAF is abbreviated) / mozCAF, webkit CRAF, etc.
  • Older broswers / node: Store a list of callbacks, pump them every 16ms (so all usages of RAF animates at the same time)