INP Presentation Delay: DOM Size, Layout and Rendering

Presentation delay runs from the last event handler to the frame on screen. A big DOM and code that runs in the frame make it long; render less on each tap.

  • Good ≤ 200 ms
  • Needs improvement ≤ 500 ms
  • Poor > 500 ms
Arjen Karel
Updated · 10 min read
Share

Presentation delay in short

Presentation delay is the third and last part of Interaction to Next Paint (INP), after input delay and processing duration: the time from the end of the event handlers until the next frame is on screen. It holds the browser's style calculation, layout and paint, plus the requestAnimationFrame and ResizeObserver callbacks, so a tap that changes a large part of the page makes it long.

Where does presentation delay start and end?

Presentation delay starts when the last event handler of the interaction has finished and ends when the frame that shows the result is on screen. For a tap those handlers are pointerdown, pointerup and click; for a key, keydown and keyup. Chrome measures the whole interaction from the input to that frame and rounds it to 8 ms.

Timeline of one tap: input delay, then processing duration, then presentation delay up to the frame on screen; inside presentation delay run requestAnimationFrame callbacks, style and layout, ResizeObserver callbacks, paint, and the compositor and GPU work.

One tap from input to frame, with what runs inside presentation delay.

Inside presentation delay run, in this order, the requestAnimationFrame callbacks, the style and layout of everything the handlers changed, the ResizeObserver callbacks and the paint; after the main thread come the compositor and GPU work. Layout that the handler forces itself, by reading a size after a change, runs inside the handler and counts as processing duration (forced reflow). A tap that changes nothing on screen still has a presentation delay: it ends at the frame the browser could have painted.

Chrome DevTools and Lighthouse call it "Presentation delay" in the INP breakdown; the web-vitals library calls it presentationDelay and CoreDash "Presentation". The two parts before it have their own pages, input delay and processing duration; the INP guide has all three together.

How much of INP is presentation delay?

Across the sites that measure with CoreDash, presentation delay on phones was 60 ms at the 75th percentile in the 28 days up to 7 November 2026: as long as processing duration and about twice the input delay (31 ms). On slow phone taps, with an INP of 500 ms or more, its median was about 140 ms, against about 210 ms of input delay and 120 ms of processing.

Each part has its own percentile over its own interactions, so the three don't add up to INP.

A good INP is 200 ms or less at the 75th percentile. Above that, start with the longest part of your slowest interaction, as Chrome's INP breakdown advises.

What causes high presentation delay?

A high presentation delay comes from a tap that makes the browser restyle and lay out a large part of the page, or from requestAnimationFrame and ResizeObserver callbacks, which run in the frame itself. Chrome's documentation of the INP breakdown describes a high presentation delay as "a rendering delay to display the result of the interaction after the event handler code ran".

  • A grid or list switch, a filter or "load more" on a long collection. Every product card is restyled and laid out again: a trace shows Recalculate style on thousands of elements, then Layout.
  • A menu, drawer or modal that sets a class on <body> or <html>. Every element the CSS rules for that class match is restyled: see Elements affected on Recalculate style.
  • Filters or search that put new HTML in for the whole grid. The browser parses and renders all of it: Parse HTML inside the handler, then Recalculate style and Layout.
  • A React or Vue page that re-renders half the screen. The DOM updates are processing; rendering the result is presentation delay, the Recalculate style, Layout and Paint after the handler.
  • Code in requestAnimationFrame. It runs just before the frame and shows up as Animation frame fired.
  • Sliders and sticky bars that measure themselves with a ResizeObserver. The callback runs in the frame after Layout, so you see a Function call before Paint.
  • A JavaScript animation or smooth-scroll script. It runs in every frame, the one after the tap included, so a trace has Animation frame fired in each.
  • Slow selectors, such as :has() on a big page. Each element takes longer to restyle, which Selector stats of Recalculate style shows.

A script that runs in every frame slows every tap on the page, so no single button stands out in the field data. I have seen one smooth-scroll script that nobody remembered adding put 200 ms of presentation delay on every click on every page.

A big DOM: the List button on 480 products

The test page is a webshop category page with 480 hiking boots, about 12,000 elements in all, where the List button sets one class on the product list. Measured in Chrome 158 at phone width with a 4x slower CPU, medians of five taps:

  • 480 products: INP 72 ms, of which 66 ms presentation delay.
  • 480 products with content-visibility: auto on the cards: INP 16 ms or less, presentation delay 6 ms or less.
  • 48 products per page: INP 16 ms or less, presentation delay 14 ms or less.

The click handler took 1 ms in every version, so the whole difference was rendering. With either fix the tap took one frame.

Lighthouse's "Optimize DOM size" lists the style recalculations and layouts that a large DOM made slow; how to make the DOM smaller goes through that notice.

Work in requestAnimationFrame and ResizeObserver callbacks

requestAnimationFrame runs just before the browser renders the frame, so work moved there from a click handler counts as presentation delay instead of processing duration. On the 48-product test page, Add to cart changes the button to "Added" and then runs a tracking function of about 90 ms:

  • Tracking in the click handler: INP 96 ms, of which 88 ms processing duration.
  • Tracking in requestAnimationFrame: INP 104 ms, of which 103 ms presentation delay.
  • Tracking in a setTimeout inside requestAnimationFrame: INP 16 ms or less, so the tap took one frame.

In requestAnimationFrame the tap was just as slow; only the part the work counted in changed. ResizeObserver callbacks run in the same rendering step, right after layout, so a slider or sticky bar that measures itself with one adds its work to every tap that changes its size.

Where do you see presentation delay for each tap?

Presentation delay per interaction comes from real-user monitoring: a RUM tool such as CoreDash splits every slow interaction into its three parts, per page and per tapped element (CrUX and Search Console only have the whole INP). A trace of that tap in Chrome DevTools then shows what ran after the handler.

In CoreDash, open INP, Breakdown, filter on mobile and group by Attribution Element: blue is presentation. Grouped by LOAF (the scripts in long animation frames) instead, every row is a script with the three parts of the interactions it ran in.

CoreDash Breakdown of Interaction to Next Paint on mobile for acme-pagespeed.com, INP subparts by Attribution Element (INP) sorted by p75 INP, each bar split into input delay (green), processing (purple) and presentation (blue): button.view-toggle 368 ms with presentation at 65%; button.filter-apply 304 ms and button.add-to-cart 236 ms with processing the largest part at 58% and 52%, all three with a yellow dot; button.menu-toggle 172 ms (presentation 40%) and input.search-field 138 ms with a green dot.

CoreDash on acme-pagespeed.com, INP on phones per tapped element: an element whose bar is mostly blue waits after its handler, in the rendering.

In DevTools, record a trace of the slow tap with the CPU slowed down. The INP breakdown insight shows the three parts. In the Main track, everything after the event handler is the presentation delay: Animation frame fired for requestAnimationFrame, then Recalculate style (click it: Elements affected is the number it restyled), Layout and Paint. With "Enable CSS selector stats (slow)" on in the capture settings, the Selector stats tab of a Recalculate style shows which selectors made it slow. CPU throttling slows only the processor, so on a real phone the GPU work after Paint can take longer than in the trace.

Chrome DevTools Performance panel after one List tap, recorded with the trace running, on a test category page with 480 products: the INP breakdown insight shows input delay 6 ms, processing duration 1 ms and presentation delay 72 ms, and the Main track shows Recalculate style, Layout, Pre-paint and Paint under the presentation delay.

The List button on the 480-product test page in the Performance panel, one tap with the trace running: the handler takes 1 ms, and Recalculate style, Layout and Paint after it make up the presentation delay.

In code, the attribution build of the web-vitals library gives the parts for each interaction:

import { onINP } from 'web-vitals/attribution';

onINP(({ value, attribution: a }) => {
  console.log('INP', value, {
    presentationDelay: Math.round(a.presentationDelay),
    styleAndLayout: Math.round(a.totalStyleAndLayoutDuration),
    paint: Math.round(a.totalPaintDuration),
    element: a.interactionTarget,
    longestScript: a.longestScript?.entry.sourceURL,
    scriptPart: a.longestScript?.subpart
  });
}, { reportAllChanges: true });

Read the parts from web-vitals or DevTools, which group all events of one tap. A single raw Event Timing entry splits differently: a tap's pointerup entry counts the click handler that ran after it as its own presentation delay. The Long Animation Frames API shows which script made the frame long, with renderStart and styleAndLayoutStart for when the rendering began.

How do you reduce presentation delay?

Presentation delay gets shorter when each tap renders less: change as few elements as the update needs, keep long lists short or let the browser skip what is off screen, and keep animation frame and ResizeObserver callbacks short. Work the visitor doesn't see goes after the frame. Start with the row of the cause table above that matches your slow tap.

WordPress and page builders

In Elementor, under Settings, Features, turn on Optimized Markup and build with Containers instead of sections and columns: both put fewer wrapper elements around every widget. Check your custom CSS afterwards, since selectors written for the old wrappers can stop matching.

Show fewer products per page (with WooCommerce in a classic theme: Appearance, Customize, WooCommerce, Product Catalog, Rows per page) and use pagination instead of infinite scroll, which keeps every loaded product in the page. When that isn't enough, ask a developer to record a trace of the slow tap and read how many elements its Recalculate style affected.

Shopify

On Shopify, start with the product grid. In the theme editor, Products per page in the collection template's Product grid section sets how many cards the page holds. In Dawn and the themes built on it, a filter replaces the whole grid with new HTML and the browser renders every card again, so fewer products per page makes that shorter too. A "load more" or infinite-scroll app keeps every product it loaded in the page, and a later tap that changes the grid restyles all of them. Apps that add a sticky add-to-cart bar or a slider can add their own scripts to the frame after a tap: switch them off one at a time and record the tap again. A developer's next step is content-visibility on the product cards, below.

Let the browser skip what is off screen

With content-visibility: auto, the browser skips the style, layout and paint of elements outside the screen until the visitor scrolls near them. On the test page above, this rule on the product cards was enough for the List button to take one frame:

.product-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 330px;
}

Give each element a contain-intrinsic-size close to its real height. Without it, a skipped card is zero pixels high and the scrollbar jumps as the cards render. It works in Chrome and Edge, in Firefox from version 125 and in Safari from version 18.

Change less on each tap

Put the class on the element that changes: a class on <body> restyles every element its rules match, anywhere on the page. For a menu or filter panel, keep the markup in the page and hide it with display: none, which is cheaper than inserting a whole new list on each tap. Markup hidden with visibility or opacity is still restyled and laid out when a tap changes the page.

A filter, a list or a cart drawer should render only what changed, and update the screen first. Long lists get pagination, or a virtualized list that keeps only the rows on screen in the DOM.

Keep work out of the frame

The click handler makes only the visible change; everything the visitor doesn't see, such as tracking, goes in a setTimeout started from a requestAnimationFrame callback, so it runs after the frame is painted:

button.addEventListener('click', () => {
  button.textContent = 'Added'; // what the visitor sees
  requestAnimationFrame(() => {
    setTimeout(sendTracking, 0); // runs after the frame
  });
});

requestAnimationFrame on its own runs before the frame, which is why the tracking in the Add to cart measurement above stayed in the tap. Keep ResizeObserver callbacks to reading and writing what they must. Animate with CSS transform and opacity, without a script that runs in every frame: ditch JavaScript scrolling shows how for smooth scrolling. For Google Tag Manager events, scheduling dataLayer events has the same pattern.

React, Vue and other frameworks

Some single page applications re-render far too much content after each interaction. The framework's DOM updates count as processing duration; the rendering of what they changed is presentation delay. In React DevTools, "Highlight updates when components render" shows what one click renders.

React.memo keeps components whose props didn't change from rendering again. With startTransition or useDeferredValue, React renders the expensive part after the frame, outside this interaction. In React, @tanstack/react-virtual virtualizes a long list.

Is the tap faster after the change?

Record the same tap again with the same CPU setting: the INP breakdown shows a shorter presentation delay, and the long Recalculate style or Layout is gone. For real visitors, the presentation part for that element drops in CoreDash within days of the change, while Search Console takes up to 28 days.

Once the rendering is cheaper, your slowest interaction may be another tap, with a long input delay or processing duration. Check all three parts again; the step-by-step INP guide goes from the Search Console report to the slow tap.

Sometimes the slow frame comes from a theme, a page builder or an app you can't change, or the trace shows rendering you can't tie to a class or a script. In a Core Web Vitals power hour we record that tap on your page together and find what makes the browser render so much.

About the author

Arjen Karel is a web performance consultant and the creator of CoreDash, a Real User Monitoring platform that tracks Core Web Vitals data across hundreds of sites. He also built the Core Web Vitals Visualizer Chrome extension. He has helped clients achieve passing Core Web Vitals scores on over 925,000 mobile URLs.

Arjen Karel

Need a faster site?

I'm Arjen, and I've been fixing slow sites for 17 years. If you're running into issues you can't fix yourself, send me your URL and let's have a chat.

Send me your URL
Arjen Karel
Arjen Karel, Web performance consultant since 2009

Why isn't our fix working?

Sometimes the CDN still serves the old HTML, or the fix went into the desktop template and mobile uses another one. Send me your URL and the problem, and I reply with a few times. I check your field data first, then we spend one hour on your site, and within a day you have my notes in writing. €350 excl. VAT.

Send me your URL

No developer to build the fix? I do the work myself, on a copy of your site.

Arjen KarelINP still red on mobile?Send me your URL