zloirock/core-js

requestAnimationFrame polyfill

Aberta

#1.523 aberto em 16 de mar. de 2026

 (1 comentário) (0 reação) (0 responsável)JavaScript (1.609 forks)batch import
enhancementhelp wantedweb standards

Métricas do repositório

Stars
 (23.771 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

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)

Guia do colaborador