November 25, 2026 by Henrik Karlström
Critical CSS, solved by not having a stylesheet
Critical CSS is the CSS a page needs to draw its first screen, put inline in the HTML so the browser doesn't wait for a stylesheet. Sites that use it usually get it from a tool that guesses where the fold is and has to run again after every change. Flipsite pages skip that step: each page is compiled with only the CSS it uses, all of it inline, so there's no stylesheet left to block rendering.
In short: critical CSS tools exist because the usual setup is one big stylesheet for every page, and the browser paints
nothing until it has downloaded it. The tools inline the rules a guessed screen size needs and load the rest later,
which works until the guess is wrong or someone changes the theme. Flipsite goes the other way: at publish, the compiler
generates CSS for exactly the tags and classes on each page and puts it in one <style> in the <head>. On flipsite.io that's a median 3.9 KB
gzipped per page across 135 pages, with zero <link rel="stylesheet">
tags (measured 2026-11-25), and Lighthouse reports no render-blocking requests.
What is critical CSS?
Critical CSS is the subset of a site's CSS that styles the content above the fold, inlined in the HTML so the first screen can render without waiting for an external file. The rest loads asynchronously after the page has painted. The point, as web.dev frames it, is to get content in front of the user as fast as possible.
The technique exists because external CSS is render-blocking. The browser has to download and parse every <link rel="stylesheet"> in the head before it shows anything, so the whole
page stays blank until those files arrive (DebugBear has a good walkthrough).
Lighthouse flags this, as "Eliminate render-blocking resources" in older versions and as the
"Render-blocking requests" insight since Lighthouse 13, which is what PageSpeed Insights shows now. Chrome's docs say what counts: any stylesheet link without a disabled attribute or a media query that only matches
other devices. Their suggested fix is critical CSS: inline the critical styles in a <style> block and load the rest with preload.
Why critical CSS is a workaround
In the usual setup a theme, framework or page builder writes every rule any page might need into one file, and every page loads all of it. Critical CSS tools leave that file in place and cut a piece off the front.
To find that piece, the tool has to decide where the fold is, and web.dev admits there's no single answer, because
screens vary too much for one pixel height to fit them all. The Critical npm package, which
Google's own codelab uses, can work out the fold by rendering the page in a browser.
Its default viewport for that is 1300 by 900 pixels, a laptop rather than a phone. Which is a bold assumption in a year
when most of your visitors are holding the page in one hand. You can pass several dimensions and it takes the union: one more thing to tune.
Then it rewrites your HTML: the rules it found go into a <style> at the top of
the head, and each stylesheet link becomes a preload at the end of the body. Those
rules now exist twice, inline and in the full file.
The extracted CSS also goes stale. Change the site and you have to regenerate it, and visitors on different screens, or logged in versus not, see different things above the fold anyway. On WordPress this is a plugin job. Jetpack's guide recommends its Boost plugin and sells automatic regeneration in the paid plan. It's also candid about the gain: critical CSS doesn't shorten loading time, it makes the page feel faster.
web.dev calls critical CSS an advanced technique that can cause bugs if it's done wrong, and says most sites can meet its performance targets without it. We agree, and we'd go a step further: a page doesn't need a site-wide stylesheet in the first place.
How Flipsite builds CSS for each page
A Flipsite site isn't a theme with a stylesheet. It's a model of sections, components and a theme, and each page is compiled to static HTML, with its CSS, when you make a milestone to publish:
-
1The compiler walks the page's element tree and collects every tag name and class, including those in rich text and in the attributes for open, scrolled, sticky and selected states and scroll animations.
-
2It generates CSS for exactly those classes, from Tailwind-style utility classes that Flipsite implements itself in PHP. A class that isn't on the page isn't in the CSS.
-
3The base reset is trimmed too. In the default mode it only covers the tags the page uses, and the border reset only appears when the page has borders.
-
4The publish setting Minimize CSS, on by default, shortens class names to
a,b,cand so on in both the CSS and the HTML. -
5The result goes into one
<style>element in the page's<head>.
Every rule on the page is one the page uses. The whole page's CSS is small enough to send up front, so there's no fold to guess. It's rebuilt from the page on every publish, so nothing needs regenerating, and no rule is stored twice.
To see what a site-wide stylesheet would carry, we took the CSS of all 135 pages on flipsite.io, reduced each to its distinct declaration blocks and compared each with the union for the whole site. A typical page uses about half of the site's rules (43 to 65 percent). So one shared file would carry roughly twice what any page needs, and that's on a small, consistent marketing site. Sites with more page types would do worse.
Per-page CSS isn't our invention. Astro splits CSS per page and inlines small stylesheets by default, and
build.inlineStylesheets: 'always' inlines all of it. The difference is who sets it
up: Astro is a framework a developer configures, while in Flipsite it's how every page is compiled.
The numbers on flipsite.io
Measured on the live site (served gzipped by nginx) on 2026-11-25, with curl and
Python's gzip:
| Page | HTML | Inline CSS | CSS gzipped | Whole `` gzipped | Stylesheet links |
|---|---|---|---|---|---|
| / | 93.3 KB | 16.8 KB | 4.5 KB | 5.6 KB | 0 |
| /blog/ | 68.1 KB | 13.8 KB | 3.9 KB | 4.8 KB | 0 |
| /pricing/ | 104.1 KB | 13.4 KB | 3.9 KB | 4.8 KB | 0 |
| /features/performance/ | 78.2 KB | 14.4 KB | 4.1 KB | 4.9 KB | 0 |
| All 135 pages | 12.0 to 16.8 KB | median 3.9 KB | 0 on every page |
The "Inline CSS" column counts all three <style> blocks on a page:
font fallback metrics, the page CSS and the @font-face rules.
web.dev's guideline is to keep above-the-fold content under 14 KB compressed, roughly what fits in the first round trip of a new connection. The whole head of a flipsite.io page, with all of its CSS, is 4.8 to 5.6 KB gzipped.
Here is the same measurement on the homepages of the builders we compare ourselves with, taken on 2026-11-25. We added
up every <style> block and every stylesheet the HTML links to, then gzipped
the total with Python. These are their own marketing sites, not sites their customers built.
| Homepage | CSS | CSS gzipped | Gzipped, more than flipsite.io | Of that, inline | Render-blocking stylesheet links |
|---|---|---|---|---|---|
| flipsite.io | 16.8 KB | 4.5 KB | – | 16.8 KB | 0 |
| squarespace.com | 168 KB | 23.5 KB | +422% | 0 | 2 |
| webnode.com | 218 KB | 36.9 KB | +720% | 0 | 7 |
| webflow.com | 296 KB | 54.1 KB | +1,102% | 73.5 KB | 2 |
| framer.com | 503 KB | 72.1 KB | +1,502% | 503 KB | 0 |
| wordpress.com | 835 KB | 103 KB | +2,189% | 495 KB | 2 |
| wix.com | 1,537 KB | 132 KB | +2,833% | 1,493 KB | 0 |
Gzipped, the smallest of the others is five times the size of ours, and Wix is about 29 times.
The trade-off: no shared cache
Inlining has one real cost: the browser can't cache the CSS for the next page. A visitor who opens five pages downloads the CSS five times instead of one file once.
At this size we think that's the right trade. On a second page view, a cached stylesheet would save about 4 KB of gzipped transfer that arrives with the HTML anyway. On the first view, the one Lighthouse measures and a visitor from search gets, an external stylesheet is a request the browser must wait for before it paints. With hundreds of kilobytes of CSS per page, the sum would come out the other way.
The Next.js docs draw the same line. Their experimental inlineCss option suits small, atomic CSS like Tailwind and adds overhead with large component libraries like
Bootstrap or Material UI. Flipsite's CSS is the small, atomic kind.
The three ways a page can get its CSS:
| One site-wide stylesheet | Critical CSS + deferred stylesheet | All CSS built per page and inlined (Flipsite) | |
|---|---|---|---|
| Blocks the first paint | Yes, until the file arrives | No | No |
| Cached for the next page | Yes | The deferred file, yes | No, about 4 KB gzipped per page on flipsite.io |
| CSS the page doesn't use | Most of the file | Sent later, in the deferred file | None |
| Has to guess a fold | No | Yes | No |
| Needs regenerating after edits | No | Yes | Rebuilt on every publish |
| Copies of the same rules | One | Two (inline and in the file) | One |
Inline isn't the whole answer
Putting CSS inline doesn't make it small. Framer and Wix have no render-blocking stylesheets in the table above, but
only because they inline 503 KB and 1.5 MB of CSS, uncompressed. (Wix's two linked files load with media="print" and switch over once loaded.) Inlining pays off only when the CSS is scoped to the
page and small enough to send before anything else.
What else is on the critical path
Besides CSS, the largest image and the fonts decide how fast the first screen appears.
The first image or background on a page that loads eagerly gets a <link
rel="preload"> in the head and fetchpriority="high",
on both the preload and the <img>. On the flipsite.io homepage that's the hero
image, /img/hero-chat-2f9877.webp. Only one image per page gets high priority, so
nothing competes with it.
Fonts are served from the site itself as woff2; with the publish setting Download Webfonts on, as on flipsite.io, that
includes Google Fonts. The compiler preloads up to three heading and body font files so the browser doesn't have to find
them in the CSS, and writes fallback fonts with size-adjust and ascent overrides so
text doesn't jump when the real font arrives. With Download Webfonts off, the Google Fonts stylesheet loads with the
media="print" swap, so it doesn't block rendering either.
A flipsite.io page has no framework JavaScript, just three small inline scripts (a ready helper, the Plausible stub and
about 10 KB for toggles and animations) and Plausible's script loaded async.
Two exceptions. A page with a syntax-highlighted code block, like this one, loads highlight.js and its theme stylesheet
from a CDN, added by JavaScript once the page is ready. It doesn't block rendering, but it is an external stylesheet.
And whatever you paste into a site's custom head code is up to you, <link
rel="stylesheet"> included. Flipsite pages ship no stylesheet of their own.
Check your own site for render-blocking CSS
Two quick ways to see whether a page has render-blocking CSS:
-
1Open the page in PageSpeed Insights on mobile and look for "Render-blocking requests" under Insights. Every stylesheet listed there holds back the first paint.
-
2From a terminal, count the stylesheet links and see how much CSS is inline:
curl -s https://flipsite.io/ | grep -c 'rel="stylesheet"' curl -s https://flipsite.io/ | grep -o '<style>' | wc -l
On flipsite.io the first command prints 0 and the second 3. On a page with a code block, like this post, the first prints 1: it matches the script that adds the highlight.js theme, which doesn't block rendering. Swap in your own address; if the first number isn't 0, our Lighthouse guide covers the other usual suspects too.
On Flipsite every page gets this on every publish, with nothing to turn on, whether a person built the page in the editor or an agent built it through Flipsite MCP. It's listed with the other Lighthouse fixes on the performance features page. Publish to GitHub Pages, Netlify, your own server or a ZIP and you get the same HTML, because every publish method receives the same compiled files (how Flipsite hosting works). The speed is in the files, not in our hosting, and the files are yours.
Questions
What is critical CSS?
Critical CSS is the part of a site's CSS that styles the first screen of a page, inlined in the HTML so the page can render without waiting for an external stylesheet. The rest is loaded after the page has painted.
How do I fix "Eliminate render-blocking resources" for CSS?
Either inline the critical styles in a <style> block and load the full
stylesheet with preload, which is what Chrome's Lighthouse docs suggest, or make the
CSS small enough to inline all of it, which removes the stylesheet link altogether.
Do Flipsite sites need a critical CSS plugin or tool?
No. Flipsite compiles each page's CSS from the classes and tags on that page and inlines all of it in the head, so pages have no render-blocking stylesheet. On flipsite.io that's a median 3.9 KB gzipped per page, measured on 2026-11-25.
Isn't inline CSS bad because the browser can't cache it?
Inline CSS is downloaded again with every page. On flipsite.io that costs about 4 KB gzipped per page view, and in return the first view never waits for a stylesheet request. With hundreds of kilobytes of CSS, the sum comes out the other way.
Is critical CSS still worth doing?
If your site ships one large stylesheet and Lighthouse flags it, yes: it usually helps the first paint. web.dev also says most sites can meet its performance targets without it, and that it can cause bugs if implemented badly. Smaller CSS per page is the fix that doesn't go stale.
Further reading
Website builder comparison 2026: seven platforms, prices, speed and AI agents
November 24, 2026 by Fredrik Rönnlund • 16m
How Flipsite hosting works, from Publish to nginx
November 23, 2026 by Fredrik Rönnlund • 8m
How to ace the Google Lighthouse speed test
February 13, 2025 by Henrik Karlström • 3m
The case for static websites over dynamic ones
October 5, 2024 by Henrik Karlström • 3m