Repository navigation
Description
Lighthouse CI has never completed a run — five separate faults, fixed in #770 — so .lighthouserc.json's budgets have never once been measured against. This is the first real data.
Baseline
Six public pages, three runs each, CI runner, 1bdcc0dfd + #770's fixes. Blank = the budget was met on that page.
| page | perf | a11y | FCP | LCP | SpeedIdx | TBT | CLS |
|---|---|---|---|---|---|---|---|
/ |
0.52 | 0.87 | 2719 | 2863 | 25301 | 2071 | — |
/contact |
0.55 | 0.92 | 2709 | 2709 | 20276 | 1975 | — |
/jobs |
0.09 | — | 2557 | 93982 | 29157 | 2110 | 0.98 |
/privacy |
0.62 | — | 1201 | — | 19660 | 1966 | — |
/support |
0.58 | — | 1083 | — | 24454 | 1969 | 0.12 |
/terms |
0.56 | — | 2573 | — | 20257 | 1971 | — |
Budgets for reference: perf ≥0.9, a11y ≥0.95, FCP ≤1000, LCP ≤2500, SpeedIdx ≤3000, TBT ≤300, CLS ≤0.1.
The one that stands out
/jobs: LCP 93,982ms — 94 seconds — with a performance score of 0.09 and CLS 0.98. Every other page is between 2.5s and 2.9s. This is not a small outlier.
That page is mine, from #760, and the cause is likely the design decision recorded in it: the listing's rows arrive through react-query after hydration rather than being server-rendered, because rendering a second server-only tree risked the hydration mismatch already tracked in #679/#681. Crawlers were covered by emitting the rows as ItemList JSON-LD. Humans were not. The largest contentful element cannot paint until the bundle loads, hydrates, and /v1/jobs returns — and CLS 0.98 says the layout moves substantially when it finally does.
So the SEO half of #756 is solved and the perceived-performance half is not, on the page most likely to be someone's first impression from a search result.
The rest
Every page misses on TBT (~2000ms against 300) and Speed Index (~20-29s against 3000), and / and /contact miss accessibility. Those look structural — an 8556-module bundle — rather than page-specific.
Acceptance
-
/jobsLCP in line with the other public pages, not 40x them - Understand the CLS 0.98 on
/jobs— almost certainly the list replacing an empty container - A decision on server-rendering the first page of results, weighed against SSR: server and client disagree on React tree position in the app shell (the cause under #625) #679/SSR: authenticated pages intermittently fail hydration and regenerate the tree — the session load races the first client render #681
- Accessibility back to ≥0.95 on
/and/contact - Budgets in
.lighthouserc.jsonset from measured reality with a ratchet, rather than the current aspirational values that have never been met (see ci: build the SDK before the nightly workflows try to bundle the app #770 — they arewarnfor now so the nightly reports rather than sits red)
Activity
ci(lighthouse): report the budgets instead of failing on budgets neve…
ci: build the SDK before the nightly workflows try to bundle the app (#…
thinkclay commentedon Sep 17, 2026
Nightly Lighthouse on
d2b275c76(2026-09-16 09:36 UTC) failed again, but not on budgets and not on the SDK build #770 fixed. Two harness faults in one run: the web server did not answer on :8081 within the 60s wait (web:serve exited before it answered, thenCHROME_INTERSTITIAL_ERRORredirecting tochrome-error://chromewebdata/), and once it did come up Lighthouse hitPROTOCOL_TIMEOUTin the ResponseCompression gatherer andRun #1...failed!. So the baseline in this issue is still the only measurement; the nightly cannot yet be trusted to re-measure the LCP fix. Worth a longer server wait and a single retry in the workflow before the Track A work lands, or the before/after has to be taken locally.perf(jobs): render the public listing's rows on the server, and stop …
thinkclay commentedon Sep 17, 2026
Status after #783 (and the reason it says part of rather than fixes):
LCP: done.
/jobsrenders its rows on the server — the route loader fetches the published and external lists and seeds react-query'sinitialData, one tree. Local Lighthouse, production export, mobile preset, median of 3: LCP 94 328 ms → 3 155 ms, now the same paint as FCP. Desktop preset: 624 ms, CLS 0.002. The local mobile baseline reproduced the CI table above to the millisecond, so the numbers are comparable.CLS: not the skeleton, and not this page. The single 0.98 shift in the trace is the whole list moving from y=109 to y=16 at +744 ms while the search header above it vanishes — the server's desktop layout (
useResponsive's constant 1280×900 server snapshot) being replaced by the mobile layout on hydration. That happens on every SSR page on every phone, and it also makes React regenerate the tree, which is #681's symptom. Filed as #782 with the trace and the shape of the fix (a per-request server snapshot in@scaffald/ui, chosen from the request's UA in the loader).Boxes:
/jobsLCP in line with the other public pages — 3.2 s vs 2.7–2.9 s/and/contact— untouched here, still open on this issueAlso removed on the way: the ten anonymous
/follows/status/job/*401s and the/profiles/skills/soft401 that every signed-out load of/jobswas making.perf(jobs): render the public listing's rows on the server, and stop …
fix(ssr): render each page for the device that asked for it — mobile …
thinkclay commentedon Sep 17, 2026
Re-ran Lighthouse on
mainatabe52dbcc— which includes #783 — using the same workflow on the same CI runner as the baseline, so the two are comparable./jobs is fixed
And it is stable, which matters more than the single number. All three runs:
So #783 did exactly what it set out to do. LCP is down 33x, CLS is inside budget, and the variance is gone.
But the ~93s value was never unique to /jobs
I reported the baseline as one number per page, and that hid something. The per-run values from the same baseline run:
And in the new run it has moved again:
Roughly 93 seconds is not a render time. It is
maxWaitForLoad: 90000plus startup — Lighthouse waiting its whole budget for a stable largest paint and recording wherever it had got to. The pages it lands on are static legal/support pages with no job list, no react-query, and nothing #783 touched.So there were two things in that 94s, and my framing of this issue only named one. The react-query-after-hydration explanation was right for
/jobs— fixing that path took it from 3/3 to 0/3 — but a second, independent cause makes some public page fail to quiesce on most runs, and which page it hits moves around. It was on/contactwhile I was writing the original baseline and I did not notice, because I only recorded the aggregate.Filing that separately rather than reopening the scope here; it is not a
/jobsproblem and it is not #783's to answer.What has not moved
TBT sits at ~1,700–2,100ms on every page, against a 300ms budget, and Speed Index at 20–29s against 3,000. Both are essentially unchanged by #783, and both are what a single 18.2 MB entry bundle costs — it has to arrive, parse and execute before anything is interactive, and no amount of server-rendering the rows changes that. That is the ceiling I flagged on #778, and it is now measured rather than predicted: seeding the rows moved LCP and CLS a long way and left TBT and Speed Index where they were.
Box 5 — budgets from measured reality
Not yet, and deliberately. Two of the six pages are currently reporting a 93s artifact rather than a measurement, so a ratchet set from this run would bake that in. Worth doing once the quiescence bug is understood — otherwise the budget records a bug as a baseline.
thinkclay commentedon Sep 17, 2026
The quiescence artifact from the comment above is now #787, with the per-run evidence from both runs. Box 5 (budgets from measured reality) is effectively blocked on it — two of six pages currently report
maxWaitForLoadrather than a measurement, and a ratchet set from this run would record that as the baseline.thinkclay commentedon Sep 17, 2026
One more observation from re-measuring after #790, worth knowing rather than fixing tonight.
Five Lighthouse runs of
/jobs(mobile preset, production export): four at LCP 3.0 s / CLS 0.0, one at LCP 93.6 s — the exact pre-#783 number. That run coincided withpnpm prepushsaturating the machine, and the localapiedge function with it: the route loader'sgetFromApihit its timeout, returned[], and the page fell back to the client-fetched path — skeleton first, rows after hydration, the old 94 s LCP. Server HTML checked immediately afterwards carried the 11 cards every time.So the fast path is real, but it is only as reliable as the loader's fetch. Two cheap hardenings if this shows up in the nightly: a longer
TIMEOUT_MSinapps/scaffald/utils/public-content-loader.tsfor the listing (it is one request, server-side, no user waiting on a spinner), and logging when the loader returns empty so a slow API is distinguishable from an empty job board.thinkclay commentedon Sep 17, 2026
The baseline in this issue is wrong, and so was my re-run comment above. Both measured
expo serve, which ships the entry bundle uncompressed — 17.42 MB against the 3.27 MB production actually serves. #789 points the job atapps/scaffald/server/index.js(the existing Express path,compression()+immutableon/_expo), and the numbers change completely.Honest baseline,
main+ #789Bundle transferred: 3.19 MB (was 17.42 MB).
//contact/jobs/privacy/support/termsThe 93s LCP is gone entirely — worst across all 18 runs is 2,422 ms, against ~95,178 before. That was never a page bug; it was 17.4 MB at a simulated 1,474 Kbps.
Speed Index also collapses, 20,000–29,000 → 4,245–7,540.
What the honest numbers show instead
Two things, and they are the real first-impressions problem:
Compression fixed the transfer. It does nothing for the ~2.2s of script evaluation under a 4x CPU slowdown, which is what TTI and TBT are made of. 17.4 MB of JavaScript still has to be parsed and executed regardless of how well it compresses on the wire.
So the bundle remains the single largest lever here, and it is now correctly characterised: not a download problem (3.19 MB is survivable), a parse-and-execute problem.
Box 5 — budgets
Now unblocked: these numbers are measurements rather than artifacts, and they are stable across three runs per page. I would still not ratchet from them in the same change that produced them — one green run of a just-changed harness is thin evidence. Worth taking the next scheduled nightly as confirmation, then setting budgets from the pair.
#787 is closed — there was no separate bug.
ci(lighthouse): measure the bundle the way production serves it (#789)
thinkclay commentedon Sep 17, 2026
Bundle audit done and recorded in #791 — byte attribution from the Metro source map, 15.80 MB of 17.42 MB attributed across 8,431 source files.
Headline: @sentry/* is 22.9% and roughly 2 MB of that is
@sentry/corebundled five times over from a version split (10.38.0 at the root, 10.73.0 nested under five sub-packages). Both lucide packages ship complete icon sets, 2.20 MB combined — andlucide-react(1.07 MB of it) is imported exactly once in the repo, for two icons inBreadcrumbIcons.web.tsx, while 369 other files uselucide-react-native.Structurally there is no route-level splitting, so
/privacydownloads and executes mapbox-gl, both icon sets and all of Sentry to render a page of text. That is why TTI is ~22s uniformly rather than varying by page.fix(CookieConsent): a dismissed banner leaves the accessibility tree,…
fix(a11y): landing and contact pages score 1.0 — real radiogroup/tabl…
thinkclay commentedon Sep 17, 2026
All five boxes are done.
/jobsLCP in line with the other pages/and/contact/jobs,/termsat 1.0). Three defects, all the #638 shape: radios withoutaria-checked, tabs without a tablist, and the cookie banner's stray<h6>(Scaffald/ui#30)Two notes stay open elsewhere: the loader-timeout fallback to the slow path (comment above; harden if the nightly shows it), and the nightly's own harness flakiness (#770's follow-up in the workflow comment).