zloirock/core-js

requestAnimationFrame polyfill

Open

#1,523 opened on Mar 16, 2026

View on GitHub
 (1 comment) (0 reactions) (0 assignees)JavaScript (1,609 forks)batch import
enhancementhelp wantedweb standards

Repository metrics

Stars
 (23,771 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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)

Contributor guide