Free auditStart free
GlossaryGlossary · Performance

Critical rendering path

The critical rendering path is the browser's sequence from HTML, CSS, and JavaScript to pixels. The five steps, what blocks them, how to shorten it, and a check.

2 min
read
2
sources
Oct 31, 2026
updated
Scaplet Editorial Team
author
In one line

The critical rendering path is the sequence of steps a browser takes to turn HTML, CSS and JavaScript into pixels: build the DOM and CSSOM, combine them into a render tree, run layout, then paint. CSS blocks rendering and synchronous scripts block HTML parsing, so those are where optimization starts.

30-second check

Is this costing your site traffic?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode

At a glance

4 facts from the sources below
DOM, CSSOM, render tree, layout, paint
Steps
CSS
Blocks rendering
Synchronous scripts
Blocks parsing
Faster first render
Goal
02At a glance

What blocks the path

Resource

CSS

Effect
The browser won't render until all CSS is received and processed
Fix
Split with media queries so non-essential styles don't block. See render-blocking and critical CSS
Resource

Synchronous script

Effect
Parser pauses until the script is fetched and run
Fix
Defer it, mark it async where appropriate, or remove it
Resource

Third-party origin

Effect
Requests start only when the parser finds them
Fix
Warm the connection early. See dns-prefetch and preconnect
Blocking, deferred, and async resources
<head>
  <link rel="stylesheet" href="/app.css">          <!-- render-blocking CSS -->
  <script src="/analytics.js" async></script>      <!-- does not pause parsing -->
  <script src="/app.js" defer></script>            <!-- runs after parsing -->
</head>
<body>
  <script src="/legacy.js"></script>               <!-- synchronous: pauses parsing -->
</body>
03How it works

How to shorten it

  1. 01

    Reduce critical resources

    Defer or async non-essential scripts and remove what you don't need. MDN also suggests media queries to split CSS.

  2. 02

    Cut request count and size

    Minify CSS and JavaScript and drop unnecessary requests.

  3. 03

    Prioritize critical downloads

    Make sure the assets needed for first render are fetched early. See preload.

  4. 04

    Keep the DOM lean

    More nodes mean longer style, layout and paint work.

  5. 05

    Set the viewport

    On mobile, <meta name="viewport" content="width=device-width"> makes layout match the device width rather than a default of about 960px.

04Check it

Check it in 2 minutes

Run it on your own URL. Each stylesheet is a render-blocking request, and each script counted by the second line lacks async and defer. This is a rough count of the raw HTML: it won't see resources added by JavaScript, so confirm in the DevTools Performance panel or a Lighthouse run.

Count blocking tags in a page's HTML
curl -sL -A 'Mozilla/5.0' https://web.dev/ > page.html
grep -o -i '<link[^>]*rel="stylesheet"[^>]*>' page.html | wc -l      # stylesheets
grep -o -i '<script[^>]*>' page.html | grep -v -i -E 'async|defer|type="module"' | wc -l   # synchronous scripts
Questions

Asked a lot.

1 questions people ask next, answered from the sources on this page.

01Is the critical rendering path the same as Largest Contentful Paint?

No. The critical rendering path is the process that gets pixels on screen. Largest Contentful Paint is a metric that measures when the largest content element appears. Shortening the path can improve it, but you verify by measuring.

Sources · 2

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • mozilla.org
  • web.dev
  1. 01Critical rendering path (MDN)developer.mozilla.org · checked 2026-11-01
  2. 02Critical rendering path (web.dev)web.dev · checked 2026-11-01
Free · 2 minutes

Know the term. Now check your site.

The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • +212% organic clicks in 90 days Ledgerly