TapCub is live — analytics, insights and live chat, free on one platform
Glossary

Critical Rendering Path: Steps and What Blocks Them

The critical rendering path is the chain of steps before a browser can paint. The six steps, which resources block parsing or rendering, a timed waterfall showing how each fix moves FCP and LCP, and how to verify it.

Lucas Hayes Reviewed by Xu An Also called CRP Last updated Nov 29, 2026 Glossary

Quick answer

The critical rendering path is the sequence a browser completes before the first paint: build the DOM from HTML, build the CSSOM from CSS, run parser-blocking scripts, combine them into a render tree, compute layout, then paint and composite. Render-blocking CSS and scripts on it delay FCP and LCP.

What is the critical rendering path?

The critical rendering path is the sequence of steps a browser must complete before it can paint the first pixels of a page: download and parse the HTML into the DOM, download and parse CSS into the CSSOM, run any scripts that block parsing, combine DOM and CSSOM into a render tree, compute layout, then paint and composite. Every resource the browser has to wait for during those steps is a critical resource.

The path matters because it sets a floor under how fast a page can show anything. A page whose <head> contains one 48 KB stylesheet and one synchronous script cannot paint until both have arrived and the script has run, however fast the rest of the page is. Optimizing the critical rendering path means shortening that chain: fewer critical resources, fewer bytes in them and fewer round trips before the first render.

The six steps from HTML to pixels

StepInputOutputWhat can make it wait
1. Build the DOMHTML bytesDocument Object ModelSlow server response; synchronous <script> tags pause parsing
2. Build the CSSOMCSS from <link> and <style>CSS Object ModelEvery stylesheet that applies to the current media must be downloaded and parsed
3. Run blocking JavaScriptScripts without async or deferChanges to DOM or CSSOMA synchronous script waits for earlier CSS, then runs on the main thread
4. Build the render treeDOM + CSSOMVisible nodes with computed stylesNeeds both trees complete for the content in view
5. LayoutRender tree + viewport sizePosition and size of every boxLarge DOMs and forced re-layouts from scripts
6. Paint and compositeLayoutPixels on screen, layers combinedExpensive effects; large images decoding

Steps 1 to 3 are where most avoidable delay lives, because they involve the network. Steps 4 to 6 are CPU work on the main thread; they become the bottleneck on slow phones and on pages with very large DOMs.

Which resources block rendering?

Two kinds of blocking matter. Render-blocking resources stop the browser from painting. Parser-blocking resources stop the HTML parser from reading further, which also delays the discovery of everything after them.

ResourceBlocks parsing?Blocks rendering?Fix
<link rel="stylesheet"> (matching media)NoYesInline the CSS needed for the first view; load the rest without blocking
<link rel="stylesheet" media="print">NoNo (media does not match)Use media for conditional styles
<script src> without attributesYesYes, when in <head>Add defer, or move to the end of <body>
<script defer>NoNoRuns after parsing, in document order
<script async>No (pauses only while it executes)NoUse for independent scripts such as analytics
<script type="module">No (deferred by default)NoAlready non-blocking
Images, videoNoNoReserve space with width and height; preload the LCP image
Web fontsNoText can be hidden until the font loadsfont-display: swap or optional; preload the main font

Browsers soften parser blocking with a preload scanner that looks ahead in the raw HTML for images, scripts and stylesheets while the main parser is stuck. It only finds what is written in the HTML. Resources referenced from inside CSS (background images, fonts) or injected by JavaScript are discovered late, which is why a CSS background used as the hero image often ends up as a slow Largest Contentful Paint.

A waterfall worked example

Sample data, simplified (no bandwidth contention between files): a product page on a mobile connection. The server delivers the first HTML byte at 0.60 s and the browser has parsed the <head> by 0.70 s. The <head> holds:

  • styles.css, 48 KB, render-blocking, finishes downloading at 1.35 s;
  • app.js, 120 KB, synchronous, finishes downloading at 1.50 s and runs for 0.18 s, so it is done at 1.68 s;
  • the hero image is a CSS background (0.90 s to download), so the browser only requests it once rendering can start.

Allow 0.02 to 0.05 s for style, layout and paint after the last blocker clears.

VersionLast render blocker clearsFCPHero image requested → loadedLCP
Baselineapp.js done at 1.68 s1.68 + 0.02 = 1.70 s1.70 → 2.60 s2.65 s
A: add defer to app.jsCSS at 1.35 s1.35 + 0.05 = 1.40 s1.40 → 2.30 s2.35 s
B: A + inline critical CSS + <link rel="preload"> for the hero<head> parsed at 0.70 s0.70 + 0.05 = 0.75 s0.70 → 1.60 s1.65 s

What the table shows:

  • Deferring one script moved FCP by 0.30 s because the script, not the CSS, was the last blocker. Removing a blocker that is not the last one changes nothing until the last one is gone.
  • The LCP gain in B came mostly from discovery. The image took 0.90 s in every version; preload simply started that 0.90 s at 0.70 s instead of 1.40 s.
  • Field thresholds: web.dev rates FCP good at 1.8 s or less and LCP good at 2.5 s or less (75th percentile). The baseline passes FCP and misses LCP; version B passes both with room to spare.

Why inline critical CSS should stay small: RFC 6928 lets a TCP connection start with an initial congestion window of 10 segments, about 14,600 bytes (10 × 1,460). HTML that fits the critical CSS into roughly the first 14 KB can render after one round trip; every additional window costs another round trip, which on a mobile connection with a 150 ms round-trip time adds 0.15 s each.

Critical rendering path vs FCP and LCP

The critical rendering path is a process; First Contentful Paint and Largest Contentful Paint are measurements of when parts of that process finish.

What it isMeasured asAffected by the critical path?
Critical rendering pathSteps and resources before the first renderCount of critical resources, critical bytes, round trips—
Time to First ByteServer and network time before HTML arrivesSecondsComes before it; sets its starting point
First Contentful PaintFirst text or image paintedSecondsDirectly: FCP cannot happen before the path completes
Largest Contentful PaintLargest element in view paintedSecondsStrongly, plus late discovery and size of the LCP resource
Interaction to Next PaintDelay of responses to clicks and tapsMillisecondsIndirectly; it is mostly main-thread work after load, covered in minimize main thread work

How to find the blocking resources on your page

  1. Record a load in the browser's Performance panel with network and CPU throttling set to a mid-range phone. Find the first paint marker and look at which requests finished just before it.
  2. Check the Network waterfall for stylesheets and scripts that start early and end just before first paint; those are your critical resources.
  3. Query the Resource Timing API. In Chromium browsers, performance.getEntriesByType('resource') exposes renderBlockingStatus, which lists each resource as blocking or non-blocking.
  4. Run a lab audit for render-blocking resources and the LCP request's discovery time.
  5. Confirm with field data, because lab runs use one device and one network.

Common mistakes

  • Adding async to scripts that depend on each other. async runs in download order, not document order; use defer for ordered scripts.
  • Lazy-loading the hero image. loading="lazy" on the LCP image delays it.
  • Inlining all the CSS. Inline only what the first screen needs; inlining everything makes the HTML larger than the first congestion window.
  • Measuring only in the lab. A fast developer laptop hides CPU-bound steps 4 to 6.

Checking a critical-path fix with real-user data in TapCub

Take version A of the example: you add defer to app.js and want to know whether visitors actually see a faster first paint.

Monitoring Performance cards showing P75 LCP, CLS, INP, FCP and TTFB with the share of good loads
Demo data: real-user Core Web Vitals cards at P75, with FCP and LCP next to their good-load share.
  1. Open Monitoring › Performance. The cards show LCP, CLS, INP, FCP and TTFB from real loads in visitors' browsers, not a lab run, with the share rated good. FCP is good at 1.8 s or less and poor above 3 s; LCP is good at 2.5 s or less and poor above 4 s.
  2. Read P75 and break down by page and device. Filter to the product page template and to mobile, where the blocking script hurt most. The Slowest pages list is sorted by P75 LCP.
  3. Split the load. Load timing divides a page load into backend (time to first byte), network transfer and frontend render, so you can see whether the remaining time sits on the server or in the browser.
  4. Mark the release. The performance page has no previous-period comparison, so add the deploy date in Configuration › Annotations and compare the week before with the week after. Pages with few samples jump between percentiles; wait for enough loads.

TapCub reports the field metrics; it does not change your HTML or tell you which file to defer.

Sources

Was this explanation clear?

We use your answers to fix and expand this page.

Lucas Hayes

Data Engineer

Writes about event design, data quality, and collection workflows, with verifiable implementation methods for reliable analytics.

FAQ

Questions people ask

Short answers to the follow-up questions that come up most.

Still have a question?

Chat with the team behind TapCub — we usually reply within a few hours on business days.

What are the steps of the critical rendering path?

Build the DOM from HTML, build the CSSOM from CSS, run any parser-blocking JavaScript, combine DOM and CSSOM into a render tree, calculate layout, then paint and composite the pixels. The first three steps depend on the network and usually hold most of the avoidable delay.

Is CSS render-blocking?

Yes, by default. A stylesheet that applies to the current media must be downloaded and parsed before the browser paints, so the page does not flash unstyled. A stylesheet with a non-matching media attribute, such as media="print", does not block rendering.

Should I use async or defer?

Use defer for scripts that need the DOM or must run in order; they run after parsing, in document order. Use async for independent scripts such as analytics, which run as soon as they download, in any order. Both stop the script from blocking the parser while it downloads.

How does the critical rendering path affect Core Web Vitals?

It sets the earliest possible First Contentful Paint and strongly affects Largest Contentful Paint, especially when the LCP image is discovered only after CSS or scripts. In the worked example, deferring one script and preloading the hero image moved LCP from 2.65 s to 1.65 s.

See this number on your own site

Add one script tag for web and apps, and the first reports fill in within minutes.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics