The parts-filter button responds slowly. Find the long frame around that click, then inspect the callbacks the browser reports. The Long Animation Frames API, or LoAF, can show the entry point for work the browser was able to attribute.
Read the frame before naming the script
A long animation frame takes more than 50 milliseconds. duration measures the frame without presentation time. blockingDuration estimates how long work in the frame would block input or other high-priority tasks. Those numbers can differ substantially.
On a test page, open DevTools and run this in the console before repeating one action. The support check lets you fall back to a Performance recording when the browser does not expose LoAF.
if (PerformanceObserver.supportedEntryTypes.includes('long-animation-frame')) {
new PerformanceObserver(list => {
for (const frame of list.getEntries()) {
console.log(frame.startTime, frame.duration, frame.blockingDuration);
console.table(frame.scripts.map(script => ({
file: script.sourceURL,
callback: script.sourceFunctionName || script.invoker,
ms: Math.round(script.duration),
})));
}
}).observe({ type: 'long-animation-frame' });
}
Compare the same action before and after
We clicked two buttons in a local parts-filter example in Chrome 157. Both updated the same panel. One ran a deliberately slow 140 ms callback before changing the panel.
| Test click | Frame | What the browser attributed |
|---|---|---|
| Busy filter callback | 143 ms duration, 91 ms blocking | applySlowFilter in the filter script, 140 ms. |
| Same update without busy callback | No long frame recorded near the click. | No script attribution for this test click. |
- Wait until the page settles, start observing and reproduce the same click on the same device.
- Check the entries that appeared when you clicked. Open the file for the longest reported callback and follow what it calls. If there is no usable attribution, inspect the same click in the Performance trace.
- Change one suspect operation in a test copy, repeat the click and compare. Use the INP breakdown to decide whether to investigate input delay, event processing or presentation next.
This was one controlled browser test. Use the Core Web Vitals guide when you need to check how real visits perform.
Frequently asked questions
Is blocking duration the same as INP?
Blocking duration describes one long frame. INP summarizes interaction latency across a visit, including the wait to handle the input and the time until the next paint.
Why can the script list be empty?
A frame may spend most of its time rendering. The browser also cannot attribute every source, such as work inside a cross-origin iframe.
Does the callback name tell me which line is slow?
It shows where the reported execution entered the script. Use the Performance trace to examine the functions the callback called.

