A portfolio should be its own best project. This page measures itself while you read it, shows how fast the site is for real visitors, and opens the bonnet on the engineering behind it.
Next.js 16 (App Router)
React 19
TypeScript
styled-components
Express 5
MongoDB Atlas
Cloudinary
Service Worker
01 · Live
This page, on your device
These are Core Web Vitals, the measures Google uses for how a page feels to load and use. They're being measured for this visit, in your browser, as you read.
LCP
—
Measuring…
when the main content appeared
INP
—
Tap or click anything
how fast the page answers taps and clicks
CLS
—
Measuring…
how much the layout jumped around
FCP
—
Measuring…
when anything first appeared
TTFB
—
Measuring…
how long the server took to answer
Measured right now by your own browser with Google's web-vitals library. INP waits for your first tap or click, and CLS keeps counting as long as the page is open. Reload to see the service worker and cache at work.
02 · Real visitors
How fast it is for everyone else
One fast load on a good laptop proves little. These are the same measurements from real visits over the last 28 days, on every kind of device and connection.
Still collecting: 15 page loads measured so far. The numbers appear once there are 20, because a percentile of a handful of visits says more about luck than about the site.
75th percentile of 18 page loads in the last 28 days, measured in visitors' own browsers and sent with this site's cookie-free analytics. Updated every few hours. Only first page loads count: moving between pages inside the site doesn't reload them.
03 · Lab test
Lighthouse scores
A repeatable test on a throttled phone, the same for every page, so changes can be compared over time.
Lighthouse scores out of 100 · Mobile, simulated slow 4G
Page
Performance
Accessibility
Best practices
SEO
Home/
81
100
100
100
Work/work
98
100
100
100
Sidequests/sidequests
97
96
100
100
Project playground/projects/catch-the-signal
96
100
100
100
Run on 27 October 2026 against the live site; the median of three runs per page. Lab tests throttle a mid-range phone on a slow connection, so they're harsher than most real visits. The home page scores lowest because of its large hero photo; “One photo was half the home page” below shows how that was cut. The real-visitor numbers above are the ones that count.
04 · Engineering
The decisions behind the numbers
Fast doesn't happen by accident. Each of these started as a problem I measured on this site.
01
Hydrate only what you're about to use
Problem
The home page is long, and React hydrates everything at once, so phones spent their first seconds running JavaScript for sections nobody had scrolled to yet.
What I did
A small lazyWhenVisible wrapper keeps the server-rendered HTML on screen and loads a section's code only when it nears the viewport, or the moment someone points at or tabs into it. The catch: if the wrapper re-renders before hydrating, React throws the server HTML away, so it detects that HTML from the DOM instead of from state.
Result
Below-the-fold sections cost nothing until they're needed, with no flash of empty content.
In the code:frontend/src/components/ui/lazyWhenVisible.tsx
02
A code editor that loads when you reach for it
Problem
The project playground ships CodeMirror, a full code editor, which made it the heaviest page on the site.
What I did
The editor is imported when the browser is idle, or straight away on the first pointer-down or focus. Until then a plain <pre> shows the same code, so the page is readable and the layout doesn't move.
Result
Up-front JavaScript on project pages went from 359 KB to 190 KB (gzipped).
In the code:frontend/src/components/lab/editor.ts
03
Works on a plane (I travel a lot)
Problem
A travel portfolio should survive bad hotel Wi-Fi.
What I did
A hand-written service worker: pages are network-first and cached as you visit them, hashed assets are cache-first, everything else is stale-while-revalidate. A page you haven't visited falls back to a small offline game. One bug worth knowing: the browser's HTTP cache was quietly serving stale HTML through the worker, so page fetches now revalidate.
Result
Pages you've seen open offline. On a return visit 22 of 27 requests come from the worker's cache, with 0 KB downloaded.
In the code:frontend/public/sw.js
04
One photo was half the home page
Problem
The home page scored 81 on Lighthouse while every other page scored 96 or more. The difference was the hero photo: 319 KB on a phone, and on a retina laptop the 1.4 MB full-size version, because the image claimed to fill the whole screen when it covers about 62% of it.
What I did
AVIF with a WebP fallback (about a third of the size for a photo this detailed), an extra in-between width so common phones get a closer fit, and a sizes attribute that tells the truth about the layout. One catch: Next.js reports every imported AVIF as 100px wide, which made browsers pick the smallest file, so the widths are written out. The 72 KB handwriting font also stopped being preloaded, since it's only decoration.
Result
Home page Lighthouse went from 81 to 85 on mobile and 95 to 99 on desktop; desktop LCP from 1.47 s to 0.87 s, and the desktop download halved (1,384 KB → 660 KB).
In the code:frontend/src/data/heroPhoto.ts
05
Long-lived caching on a host that doesn't send it
Problem
The host serves the public/ folder itself, bypassing Next.js, so images there went out with no cache headers at all.
What I did
Photos and logos moved into the source tree and are imported, which gives them content-hashed URLs that Next.js serves as immutable for a year. A new photo gets a new URL, so there's never a stale one.
Result
Repeat visits don't re-download images; changing a photo still shows up instantly.
In the code:frontend/src/assets
06
Theming without re-rendering
Problem
Most styled components read the theme at render time, so every render re-ran their CSS, and switching between light and dark re-rendered the whole tree.
What I did
Design tokens became CSS variables and styles reference them statically. Switching theme flips one attribute on <html>, and a small inline script applies the saved theme before first paint.
Result
Components with runtime CSS went from 215 to 38; the theme switch costs no React work and never flashes the wrong theme.
In the code:frontend/src/styles/theme.ts
07
Static speed, live content
Problem
Everything on the site is editable from a private admin page, but fetching content on every request would make every page as slow as the API.
What I did
Pages are prerendered and their content is cached with a tag. Saving in the admin calls back into Next.js to expire that tag, and if the API is ever down the site falls back to bundled content.
Result
Pages are served like static files, and an edit shows up on the next request.
In the code:frontend/src/lib/content.ts
08
Accessible to WCAG 2.2 AA
Problem
Maps, a code editor and animations are exactly the things that tend to shut out keyboard and screen-reader users.
What I did
A skip link, a site-wide pause for animations, Esc to leave the code editor (so Tab doesn't trap you), 24px touch targets on the map with a list of places as an equivalent, and contrast checked in both themes.
Result
axe runs clean on 7 pages in both themes, on phone and desktop sizes.
09
Measuring without tracking anyone
Problem
I wanted to know what people look at, and how fast the site really is for them, without cookies or a consent banner.
What I did
Self-hosted analytics: no cookies, no IP addresses stored, a visitor hash that changes every day, and nothing sent at all when the browser asks not to be tracked. The same beacon carries the Web Vitals you see on this page.
Result
No third-party scripts on the site, and the numbers above come from real visits.