requestAnimationFrame Scheduling For Nerds

All rAF callbacks always run in the same or next frame of work

Every rAF you request will run

Life of a frame (main thread edition)
Event dispatching within a frame (multi-process edition)

Addendum about the rAF timestamp

Note the repeated-count badges on the left of the logs…

 by the author.

--

--

--

The web, performance, and tooling. Also ❤z.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Paul Irish

Paul Irish

The web, performance, and tooling. Also ❤z.

More from Medium

Parsing Android EXIF Coordinates in TypeScript

Practical Jetpack Compose: Get the beta!

Create an Android Switch Using Jetpack Compose

Jetpack Compose Migration: Part 1. Get Started