Skip to Content
Platform.Ontology

Long Animation Frames (LoAF)

Reports frames that took over 50 ms and which scripts caused them.

Gets silentlySpeed and timingPerformance APIWeb browsersWhile you use it

In one line

Can see slow page frames and which scripts caused them

Reports frames that took over 50 ms and which scripts caused them.

Shows slow frames with script URLs, durations, forced layout and blocking time. Gives site owners (and third party scripts) a view of device speed and which embedded scripts exist on the page.

What it can and can't do

What the user does: Nothing. It happens as the page runs

It can

  • List frames that took over 50 ms
  • Name which script or link made them slow
  • Learn your device speed
  • See how embedded or outside scripts affect the page

It cannot

  • Work in Firefox or Safari
  • Ask permission first
  • See your files
  • Know who you are by itself

How it differs between platforms: Chrome and Edge support it. Firefox and Safari do not.

Browser support

BrowserStatusFirst versionReleasedNote
ChromeSupported1232024-03-19None
EdgeSupported1232024-03-22None
FirefoxNot supportedNot availableNot listedNone
SafariNot supportedNot availableNot listedNone
Safari on iPhoneNot supportedNot availableNot listedNone
Chrome on AndroidSupported1232024-03-19None
Samsung InternetSupported27.02024-11-06None

How a site asks for it

APInew PerformanceObserver(...).observe({type:'long-animation-frame'})
Browser compat keysapi.PerformanceLongAnimationFrameTiming
How access is grantednone
What the user seesNot listed
Needs a secure context (HTTPS)No
Needs a user gestureNo
How long it lastsNot listed
How to take it backNot listed
Inside an iframeNot listed

Typical flow

  1. Register observer
  2. Receive entries >50 ms with scripts[] attribution
  3. Report sourceURL and invoker

Data you get

What comes back: One entry per slow frame
Shape: event

FieldTypeUnitRangePrecision
durationfloatms50 to 100001 ms (rounded)
blockingDurationfloatms0 to 100001 ms
scriptslistNone0 to 30sourceURL, invoker, duration

Technical limits

  • Cross-origin script attribution limited to URL for opaque scripts only if CORS allowed
  • Chromium only

The story

What it is

Browsers report screen updates that took over 50 milliseconds and which scripts caused them.

For you

You never see it. It is a tool that points to the exact script that made a page stutter. When teams fix those scripts, your scrolling and taps feel smoother.

For makers

Developers use it to find slow third party scripts, such as ads and chat widgets, and push vendors to fix or remove them. It helps meet Core Web Vitals targets and keeps real time apps smooth.

Where you see it

TypeExampleApps
gamesA browser game studio finds that one script froze the frame for 120 ms during a fight, and fixes it.None named
adsA publisher sees a slow ad script in its reports and drops that ad partner.None named
shoppingA retailer finds that a chat widget makes the checkout button feel stuck and defers it.None named
creativeA design tool traces a stutter while zooming to one heavy script and rewrites it.Figma
videoA streaming site finds a script that makes the player controls lag, and splits it up.None named
analyticsA monitoring service groups slow frames by script owner so teams can see which vendor is to blame.Sentry, Datadog RUM
newsA news site traces scroll jank on phones to a heavy ad and sets a stricter ad rule.None named

Risks

  • Exposes third party scripts
  • Chromium only so far

What the platform says

Good uses and abuse

Legitimate uses

  • INP debugging, third-party script audits

Known abuse

  • Device performance class inference, script inventory

Scores

ScoreValueMeaning
Sensitivity2 of 5How revealing the data is
Utility4 of 5How useful it is to honest apps
Friction0 of 5How much the user has to do
Fingerprint bits2Rough identifying entropy, when known

History

  • 2024-03, Chrome 123: LoAF ships
  • 2025-01, Chrome: Adds renderStart, styleAndLayoutStart and script attribution fields

Sources

How well checked: Based on official documentation.

On this page