{
  "meta": {
    "canonicalUrl": "https://timetostable.com/feature/request-animation-frame",
    "bcdVersion": "8.1.11",
    "webFeaturesVersion": "3.48.0"
  },
  "kind": "web-feature",
  "webFeature": {
    "id": "request-animation-frame",
    "name": "requestAnimationFrame()",
    "description": "The requestAnimationFrame() method schedules a function that runs before the next repaint. You can use it to animate content with JavaScript.",
    "group": "other",
    "groupName": "other",
    "spec": "https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#animation-frames",
    "baseline": "high",
    "baselineLowDate": "2015-07-29",
    "baselineLowDay": 16645,
    "baselineHighDate": "2018-01-29",
    "compatCount": 2,
    "cats": [
      "api"
    ],
    "compatKeysSample": [
      "api.Window.cancelAnimationFrame",
      "api.Window.requestAnimationFrame"
    ],
    "s": {
      "chrome": {
        "v": "24",
        "d": 15715
      },
      "chrome_android": {
        "v": "25",
        "d": 15763
      },
      "edge": {
        "v": "12",
        "d": 16645
      },
      "firefox": {
        "v": "23",
        "d": 15923
      },
      "firefox_android": {
        "v": "23",
        "d": 15923
      },
      "safari": {
        "v": "7",
        "d": 16000
      },
      "safari_ios": {
        "v": "7",
        "d": 15966
      }
    }
  },
  "relatedBcdFeatures": [
    {
      "id": "api.Window.cancelAnimationFrame",
      "cat": "api",
      "mdn": "API/Window/cancelAnimationFrame",
      "spec": "https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#animationframeprovider-cancelanimationframe",
      "st": 1,
      "wf": "request-animation-frame",
      "bl": "high",
      "bld": 16645,
      "s": {
        "chrome": {
          "v": "24",
          "d": 15715
        },
        "firefox": {
          "v": "23",
          "d": 15923
        },
        "safari": {
          "v": "7",
          "d": 16000
        },
        "edge": {
          "v": "12",
          "d": 16645
        },
        "chrome_android": {
          "v": "25",
          "d": 15763
        },
        "firefox_android": {
          "v": "23",
          "d": 15923
        },
        "safari_ios": {
          "v": "7",
          "d": 15966
        },
        "webview_android": {
          "v": "4.4",
          "d": 16048
        },
        "webview_ios": {
          "v": "7",
          "d": 15966
        },
        "samsunginternet_android": {
          "v": "1.5",
          "d": 15973
        },
        "opera": {
          "v": "15",
          "d": 15888
        },
        "opera_android": {
          "v": "14",
          "d": 15846
        },
        "oculus": {
          "v": "5.0",
          "d": 17713
        },
        "ie": {
          "v": "10",
          "d": 15639
        }
      }
    },
    {
      "id": "api.Window.requestAnimationFrame",
      "cat": "api",
      "mdn": "API/Window/requestAnimationFrame",
      "spec": "https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#dom-animationframeprovider-requestanimationframe",
      "st": 1,
      "wf": "request-animation-frame",
      "bl": "high",
      "bld": 16645,
      "s": {
        "chrome": {
          "v": "24",
          "d": 15715
        },
        "firefox": {
          "v": "23",
          "d": 15923
        },
        "safari": {
          "v": "7",
          "d": 16000
        },
        "edge": {
          "v": "12",
          "d": 16645
        },
        "chrome_android": {
          "v": "25",
          "d": 15763
        },
        "firefox_android": {
          "v": "23",
          "d": 15923
        },
        "safari_ios": {
          "v": "7",
          "d": 15966
        },
        "webview_android": {
          "v": "4.4",
          "d": 16048
        },
        "webview_ios": {
          "v": "7",
          "d": 15966
        },
        "samsunginternet_android": {
          "v": "1.5",
          "d": 15973
        },
        "opera": {
          "v": "15",
          "d": 15888
        },
        "opera_android": {
          "v": "14",
          "d": 15846
        },
        "oculus": {
          "v": "5.0",
          "d": 17713
        },
        "ie": {
          "v": "10",
          "d": 15639
        }
      },
      "notes": [
        {
          "t": "Callback parameter is a <code>DOMHighResTimestamp</code>. This means ten microsecond precision and zero time as <code>performance.now()</code>.",
          "b": [
            "firefox"
          ]
        },
        {
          "t": "Callback parameter is a <code>DOMTimestamp</code>. This means millisecond precision and zero time as <code>Date.now()</code>.",
          "b": [
            "firefox"
          ]
        },
        {
          "t": "Could be called with no input parameters.",
          "b": [
            "firefox"
          ]
        },
        {
          "t": "Before version 17, Edge does not reliably fire <code>requestAnimationFrame</code> before the paint cycle.",
          "b": [
            "edge"
          ]
        },
        {
          "t": "Internet Explorer does not reliably fire <code>requestAnimationFrame</code> before the paint cycle.",
          "b": [
            "ie"
          ]
        }
      ]
    }
  ]
}