zloirock/core-js

requestAnimationFrame polyfill

オープン

#1,523 opened on 2026/03/16

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (1,609 件のフォーク)batch import
enhancementhelp wantedweb standards

Repository metrics

Stars
 (23,771 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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)

コントリビューターガイド