The site you are reading scores 100 for performance in Lighthouse on my test runs, on mobile settings. There was no clever trick at the end. It came from a handful of decisions made at the start: ship static HTML, send almost no JavaScript, load fonts properly, keep images in check, and say no to anything that runs on every page without a good reason.
This article walks through those decisions, the Next.js setup behind them, and the things I deliberately left out. It is written for developers and for business owners who want to understand why some sites are fast and others are not, whatever the platform.
One honest note first. A Lighthouse score is a lab test on a simulated mid-range phone. It varies a little between runs and between machines. It is a useful tool, not the goal. What matters to Google and to visitors is how the site performs for real users, which is what Core Web Vitals field data measures.
Decision 1: Static HTML, not a server
This site is built with Next.js 16 using the App Router, but it does not run a Node server in production. The config has one important line:
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
output: "export",
trailingSlash: true,
images: { unoptimized: true },
};
export default nextConfig;output: "export" makes next build write plain HTML, CSS and JavaScript files to an out folder. Every page, including every blog post, exists as a finished HTML file before anyone visits. The server's only job is to hand over a file, which any host or CDN does in milliseconds.
That removes the biggest source of slowness on most sites I fix: waiting for a server to build the page. There is no database query, no PHP, no cold start. Time to first byte is as low as the host allows.
I wrote more about this approach in why your next website should be a static Next.js site. It does not suit every project, but for a portfolio, a service business or a blog, it is hard to beat.
Decision 2: Server Components by default, client code only where needed
In the App Router, components are React Server Components unless you mark them with "use client". With a static export, server components run at build time and become HTML. They send no JavaScript for their own logic to the browser.
On this site, only a few small pieces are client components:
- The theme toggle (light and dark mode).
- The navigation links, which highlight the current page.
- A button that copies my email address.
- The contact form.
Everything else, including the header layout, the footer, the service pages and the blog post rendering, is server-rendered at build time. The blog posts are Markdown files converted to HTML during the build, so reading an article runs no extra code for the content itself.
This is the single most important habit for a high score. Every "use client" at the top of a large component pulls that component and everything it imports into the browser bundle. I keep client components small and at the edges of the page, not wrapping whole sections.
Decision 3: Fonts that do not block or shift
Fonts are a quiet cause of poor scores. Loading them from a third-party server adds connections, and swapping from a fallback font to the web font can move text around, which hurts Cumulative Layout Shift.
I use next/font, which downloads Google Fonts at build time and serves them from the same domain:
import { Geist } from "next/font/google";
const sans = Geist({
subsets: ["latin"],
variable: "--font-sans",
display: "swap",
});next/font also generates a fallback font with adjusted metrics so the swap barely moves anything. I only load the Latin subset, and a secondary monospace font is not preloaded because it appears on few pages.
The other rule: fewer font files. Each weight and style is another download. Pick a family with a variable font or limit yourself to what the design really uses.
Decision 4: Plain CSS in one file
There is no CSS framework on this site and no CSS-in-JS runtime. Styles live in one global stylesheet, using custom properties for colours so light and dark themes are just two sets of variables.
A single stylesheet is small after compression, cached after the first page, and parsed once. Without a runtime styling library, there is no JavaScript generating styles in the browser.
The theme also had to avoid a flash of the wrong colours on load. A tiny inline script in the document head reads the saved preference and sets it before the first paint. It is a few dozen characters and runs before anything renders, so it costs almost nothing.
Decision 5: Images treated as a budget
Because this is a static export, the Next.js image optimisation server is not available, so images.unoptimized is set. That means the responsibility for image size is mine, at the source:
- Images are exported at the size they are displayed, not larger.
- WebP or AVIF where it makes sense.
- Width and height set on every image so the browser reserves space and nothing shifts.
- The main image near the top of a page is not lazy-loaded, because it is often the Largest Contentful Paint element. Everything below the fold is.
The blog itself has no images in the posts, which is part of why articles load so fast. When images are needed, the same rules apply. My guide on optimizing images for the web has the detail.
Decision 6: No third-party scripts by default
This is the decision most business sites cannot or will not make, and it is the one that costs them the most. No chat widget. No heatmap. No social media embeds. No external comment system.
Every third-party script competes for the main thread, which hurts Total Blocking Time in the lab and Interaction to Next Paint in the field. If a site needs analytics, I choose a lightweight option and load it after the page is interactive.
When clients ask why their site scores 60 while a competitor's scores 95, the answer is usually here. The fix is often less work than people expect: remove what nobody uses, and load what remains later.
What a 100 score does and does not prove
| A 100 Lighthouse score shows | It does not show |
|---|---|
| The page is light and well-built under lab conditions | How real visitors on slow networks experience it |
| No major render-blocking resources | That INP is good, since Lighthouse cannot click |
| Images and fonts are handled sensibly | That the site ranks well or converts |
| The page passes common best-practice checks | That other pages on the site are equally fast |
For the real-world view, check the Core Web Vitals report in Search Console and the field data section of PageSpeed Insights. The Core Web Vitals guide explains the thresholds.
Can you get this on WordPress or Shopify?
You can get close. I have taken WordPress sites into the 90s on mobile with good hosting, a light theme, careful plugins and caching. The difference is that on a static Next.js site, speed is the default and you have to add things to slow it down. On a page-builder WordPress site, slowness is the default and you have to remove things to speed it up.
Neither is wrong. If your team needs to edit pages visually every day, WordPress may still be the better business choice, and a score in the 90s is excellent.
The short version
This site scores 100 because it ships static HTML, keeps client JavaScript to a few tiny components, self-hosts fonts with next/font, uses one plain stylesheet, sizes images properly and loads no third-party scripts by default. None of these is hard. The discipline is in not adding things back later.
If you want a site built this way, or want your current site moved in this direction, take a look at my Next.js development service and get in touch.