Performance, taken apart

How Flipsite builds every page for 100 on Lighthouse

Flipsite compiles every page from exactly what it needs, so every page is built to score 100 on all four Lighthouse tests. Here's an under the hood view on how it works.

Three decisions behind every score

Compiled, not served. Static files. Nothing runs on a server when someone visits.

Only what the page uses. CSS, fonts and scripts are built per page, from what is on it.

Guardrails for people and agents. One compiler, one section library, no slower second route.

The map: four tests, four sets of decisions

Flipsite renders every page at publish time, so it knows each class, image, font character and script the page needs, and writes exactly that. Sites are built to score 100 on all four Lighthouse tests. Here is the decision behind each audit.

Four Lighthouse tests on the left, Performance, Accessibility, Best practices and SEO, each with a line that enters a tall blue box with the Flipsite logo and the words compiler decides, and leaves it towards the decisions the compiler makes before it writes a file.
Lighthouse test What it checks What the compiler decides
Performance Render-blocking files, unused CSS and JavaScript, image size and priority, layout shift, third-party code, DOM size One inline style with only the rules the page uses. Images written at the sizes the layout needs, the first one preloaded. Fonts cut to the characters in use. Small scripts included only where used.
Accessibility Contrast, names and labels, alt text, tap targets, heading order, landmarks A palette computed for AA contrast per step. Text colour picked by contrast. A section library whose rules cover alt sources, heading levels and 44 px targets. One main landmark per page.
Best practices Third-party requests, image aspect ratio, embedded content No third-party scripts by default. Width and height on every image. YouTube and maps load on click.
SEO Title, description, canonical, links, robots.txt, structured data Written from the page and site settings at compile time, as files: sitemap, robots, llms.txt, canonical, hreflang, JSON-LD.

Each row is a decision the compiler makes before a byte is written. The next ten chapters show how.

01 / The compiler

One compile.

Most website builders either serve your page from a server or hand the browser a pile of parts to put together. Flipsite does neither. It compiles.

When you publish, the compiler goes through every page and works out what it needs to be delivered. It renders the page, then reads its own output: which tags and classes, which images at which sizes, which fonts and which characters, which scripts. Then it builds exactly that, page by page, and writes the files.

That is what sets Flipsite apart. A page never carries the weight of the other pages on your site. There is no shared stylesheet that has to cover every page, and no script bundle for features this page never uses. Each page gets only what it needs.

The result can look sharp, with big images, custom fonts and motion, and still load on an old Android phone over a patchy 3G connection. The rest of this page explains how, one decision at a time.

Lighthouse checks this passes

None directly. Everything below depends on it.

Pages are rendered, assets and characters found, only what is used built, files written

02 / Static

One request.

Every page is one file. The HTML arrives with its CSS and scripts already inside, so the browser can draw the page after a single request. Nothing is looked up, assembled or generated for the visit.

Publish the same files to Flipsite hosting, GitHub Pages, Netlify, your own server, a webhook or a ZIP. Read more about publishing.

The speed is in the files, and the files are yours. Read more about how hosting works.

Lighthouse checks this passes

  • Server response time
  • Avoid multiple page redirects
Top, greyed out: most other website builders assemble a page for every visit, through a browser, server, database and more files. Bottom, lit, with the Flipsite logo: the page is compiled once, and the browser gets one file, HTML with its CSS and scripts inside, in one request.

03 / CSS

No stylesheet.

Critical-CSS tools exist because one big stylesheet blocks the first paint. Flipsite has no stylesheet to extract from. Read more about critical CSS.

Each page gets CSS for exactly the tags and classes on it, in one style element in the head. The base reset is trimmed to the elements the page uses. Class names are shortened on publish.

Every publish rebuilds the CSS from the page.

Lighthouse checks this passes

  • Eliminate render-blocking resources
  • Minify CSS
  • Reduce unused CSS
A page and its used tags flow into one small inline style block, beside a shared stylesheet with mostly unused rules

Example page, made-up content (a fictional restaurant site), compiler output trimmed, line breaks added

html{-webkit-text-size-adjust:100%;
  font-family:Lato,'Lato Fallback',system-ui,sans-serif;
  line-height:1.5;font-weight:300}
img{height:auto;max-width:100%;display:block;
  vertical-align:middle}
.sr-only{position:absolute;width:1px;height:1px;
  padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border-width:0}

04 / Images

1 priority image.

Raster images compile to WebP by default, at the sizes the layout needs. Set an image to responsive and the compiler writes a width ladder: up to twice the displayed width, never above your source file, with near-duplicate widths skipped.

sizes follows your breakpoints. On lazy images it is auto: the browser uses the width the image is laid out in.

Width and height are written on every image, so the browser reserves the space before the file arrives.

Only the first eager image or background gets high priority and a preload carrying the same size list. A second one would weaken the hint. Everything else is lazy.

Background images load lazily through a script of about 450 bytes. Files carry a content hash in the name, and unused ones are removed on the next compile. Icons come from one inline sprite. Dark mode can swap an image through a picture element.

Lighthouse checks this passes

  • Properly size images
  • Serve images in next-gen formats
  • Defer offscreen images
  • Image elements have explicit width and height
  • Preload Largest Contentful Paint image
One source image fans into a ladder of widths, a browser picks one, space is reserved and only the first image is preloaded

Example page, made-up content (a fictional restaurant site), compiler output trimmed, line breaks added

<link rel="preload" as="image"
  href="/img/linnea-dining-room@h512,w768.5bace8.webp"
  imagesrcset="/img/linnea-dining-room@h512,w768.5bace8.webp 1x,
    /img/linnea-dining-room@h1024,w1536.5bace8.webp 2x"
  fetchpriority="high">

<img loading="eager" alt="" width="768" height="512"
  fetchpriority="high"
  src="/img/linnea-dining-room@h512,w768.5bace8.webp"
  srcset="…@h512,w768.5bace8.webp 1x,
    …@h1024,w1536.5bace8.webp 2x" class="…">

Look at fetchpriority, srcset, width and height: the preload and the image carry the same size list, and the space is reserved.

05 / Fonts

Only the characters you use.

Google Fonts are downloaded when the site is compiled and hosted with your site. The browser never calls Google for them.

The fonts are fetched after the pages are rendered, because that is when the characters are known. Latin always, extended Latin only when a page has text fields. A variable font is one file.

At most three fonts are preloaded, so they do not fight the hero image for bandwidth.

A fallback font is sized to the web font's metrics, so text does not jump when the real one arrives.

Lighthouse checks this passes

  • Ensure text remains visible during webfont load
  • Avoid chaining critical requests
  • Cumulative Layout Shift
Only the characters used on the page are lit, and the web font sits over its fallback with identical line breaks

Example output, trimmed, line breaks added: the metric-matched fallback face of the demo page, and a subset face from a published compile

@font-face{font-family:'Lato Fallback';
  src:local('Arial');size-adjust:95%;
  ascent-override:103.9%;descent-override:22.42%;
  line-gap-override:0%}

@font-face{font-family:Montserrat;font-style:normal;
  font-weight:700;font-display:swap;
  src:url(/fonts/montserrat-latin.1c0792.woff2)
    format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,
    U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,
    U+0308,U+0329,U+2000-206F,U+20AC,U+2122,
    U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

06 / JavaScript

No framework.

Behaviour comes as about twenty small scripts, each roughly 0.15 to 3.4 KB: menu, accordion, tabs, count-up, scroll markers. A page gets only the ones it uses, inlined. Animations are CSS.

YouTube and maps load on click: the iframe has no address until someone clicks, so no third-party request happens before the visitor chooses.

No framework, no bundle, no third-party script unless you add one.

A bundler is a way of shipping the code you did not need together with the code you did.

Lighthouse checks this passes

  • Reduce unused JavaScript
  • Reduce the impact of third-party code
  • Total Blocking Time
Small labelled scripts, only a few switched on for a page, beside one large block labelled typical runtime

07 / HTML

Markup that says what it is.

Sections compile to section elements and headings to headings. Navigation, quotes and figures use their own elements.

Every page has exactly one main landmark, wrapped around the page's sections automatically. The active nav link carries aria-current, and decoration is hidden from screen readers.

View-source shows what you built.

Lighthouse checks this passes

  • Avoid an excessive DOM size
A small tree of semantic elements with the single main landmark highlighted

Example page, made-up content (a fictional restaurant site), trimmed to landmarks and text elements

<body>
  <nav>…</nav>
  <main>
    <section id="hero">
      <h1>Swedish seasonal cooking on Folkungagatan</h1>
      <img …>
    </section>
    <section id="why-us">
      <header><h2>A short menu, good ingredients</h2></header>
    </section>
    <section id="guest-reviews">
      <figure><blockquote>…</blockquote><figcaption>…</figcaption></figure>
    </section>
  </main>
  <footer>…</footer>
</body>

08 / Accessibility

AA, computed.

The whole palette is calculated from two base colours, with a contrast target for every step. The text colour on each fill is picked by contrast: white if it is readable, otherwise dark.

The editor flags a brand colour that neither white nor dark text can sit on. Dark mode follows the visitor's setting. Animations can be switched off for reduced motion.

The section library's rules cover heading levels, an alt-text source on every image, descriptive link text and 44-pixel tap targets. Read more in the accessibility report.

Contrast is the one test where a designer's taste and arithmetic disagree, and arithmetic is not taking questions.

Lighthouse checks this passes

  • Background and foreground colors have a sufficient contrast ratio
  • Image elements have alt text
  • Links have a discernible name
  • Touch targets are sized appropriately
A ten-step colour palette from two base colours with AA ticks, above a screen reader outline of landmarks and headings

09 / SEO, AI, portability

Files, not settings.

Every build writes sitemap.xml, robots.txt, llms.txt and a 404 page. Canonical and hreflang come from the site address and languages. Share-link metadata is built from the page. JSON-LD structured data is generated for the page.

Redirects are written as real files for the host: an HTML hop page that works anywhere, an Apache rule file, an nginx map, a Netlify file, or JSON for your own script.

CMS collections can be published as JSON, so a static host gets a content API.

Lighthouse checks this passes

  • Document has a meta description
  • Document has a title
  • Page has successful HTTP status
  • Links are crawlable
  • robots.txt is valid
  • rel=canonical
The files one compile writes, ready for any static host

10 / Guardrails

One compiler for people and agents.

A person and an AI agent use the same compiler and the same section library. Neither gets a second, slower route.

The issues panel flags a title or description of the wrong length, a missing or doubled H1, broken links and brand colours with too little contrast.

page_check and site_check in Flipsite MCP flag unresolved variables, empty lists and SVGs without a size before you publish. Read more about Flipsite MCP.

Every agent change is a version you can undo.

Lighthouse checks this passes

They keep the other nine chapters in place after the next edit.

An editor with a section library, an issues panel with two flagged items and a version history with undo

Why this is hard to copy

Assembled per visit or in the browser, against compiled once into files
  • A runtime has to ship. Builders and CMSs that assemble a page per request, or in the browser, ship the code that assembles it. A compiler ships none of it.
  • A shared stylesheet cannot know the page. One theme or stylesheet serves every page, so it carries rules this page never uses. Per-page CSS needs a compiler that sees the page.
  • Free-form editors let anything be nested. Markup then grows wrappers around wrappers. Flipsite builds markup from sections, headings, lists and other standard elements.
  • Plugins and widgets bring their own requests. The page owner does not control them. In Flipsite, third-party code is something you add on purpose, not something that arrives with the platform.
  • Images and fonts chosen by the editor are not rewritten per device and per character set. In Flipsite the compiler does the rewriting.
  • Accessibility and SEO left to the user or a plugin are not guaranteed. In Flipsite they are generated from the theme and the page.

Copying one of these is a settings change. Copying all six means changing how the product works.

Tips and spec sheet

Keeping it at 100

Keeping it at 100

  • Size images as they are shown, and set hero images to responsive.
  • Keep the first image the only eager one.
  • Use cookieless analytics, such as Plausible.
  • Add scripts and widgets one at a time, and check PageSpeed Insights before you publish.
  • Keep titles, descriptions and one H1 per page: the issues panel tells you.

Read more about keeping a site at 100.

Engine spec sheet

Area Rule
Output Static HTML, one inline style element per page, no stylesheet file written
Images WebP; width ladder up to 2x the displayed width, never above the source; near-duplicate widths skipped; one high-priority image per page; the rest lazy
Fonts Fetched after pages are rendered; subsets from the characters used; at most 3 preloads; metric-matched fallback
JavaScript About twenty micro-scripts, 0.15-3.4 KB each, only where used; no framework
Markup One main landmark per page; standard elements; aria-current on the active link
Colour Palette from two base colours; AA contrast target per step
Files sitemap.xml, robots.txt, llms.txt, 404, redirects (HTML, Apache, nginx, Netlify, JSON), CMS JSON
Hosting Any static host, a webhook or a ZIP

Design rules, not measurements.

The terms, one line each

  • LCP (Largest Contentful Paint): how long it takes for the largest image or text block to appear.
  • CLS (Cumulative Layout Shift): how much visible content moves around while the page loads.
  • TBT (Total Blocking Time): how long the browser is too busy to respond to input between the first paint and the page becoming interactive.
  • FCP (First Contentful Paint): how long it takes for the first text or image to appear.
  • Speed Index: how quickly the visible part of the page fills in.
  • Critical request chain: the files the browser must fetch one after another before the page can render.

Frequently asked questions

Short answers on how Flipsite builds every page for 100.

Build one and see

Free to start, MCP included. Connect Claude, ChatGPT or Cursor, publish, and read the compiled files yourself.

Start building with your AI

Free to start. Connect Claude, ChatGPT or Cursor, fine-tune it in the editor, and host it anywhere.

Get started for free
Flipsite

©2026 Flipsite. All rights reserved. Made in the EU 🇪🇺 🇦🇽