zloirock/core-js

requestAnimationFrame polyfill

Open

#1 523 ouverte le 16 mars 2026

Voir sur GitHub
 (1 commentaire) (0 réactions) (0 assignés)JavaScript (1 609 forks)batch import
enhancementhelp wantedweb standards

Métriques du dépôt

Stars
 (23 771 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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)

Guide contributeur