Skip to content

First Lighthouse baseline: /jobs has a 94s LCP, and no public page meets its budget #774

Closed

Description

@thinkclay

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

Related: #756, #760, #679, #681, #770.

Activity

  1. added
    bug
    on Sep 15, 2026
  2. thinkclay commented on Sep 17, 2026

    @thinkclay
    ContributorAuthor

    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, then CHROME_INTERSTITIAL_ERROR redirecting to chrome-error://chromewebdata/), and once it did come up Lighthouse hit PROTOCOL_TIMEOUT in the ResponseCompression gatherer and Run #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.

  3. thinkclay commented on Sep 17, 2026

    @thinkclay
    ContributorAuthor

    Status after #783 (and the reason it says part of rather than fixes):

    LCP: done. /jobs renders its rows on the server — the route loader fetches the published and external lists and seeds react-query's initialData, 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:

    Also removed on the way: the ten anonymous /follows/status/job/* 401s and the /profiles/skills/soft 401 that every signed-out load of /jobs was making.

  4. thinkclay commented on Sep 17, 2026

    @thinkclay
    ContributorAuthor

    Re-ran Lighthouse on main at abe52dbcc — which includes #783 — using the same workflow on the same CI runner as the baseline, so the two are comparable.

    /jobs is fixed

    metric before after budget
    performance 0.09 0.53 ≥0.9
    LCP 93,982 2,859 ≤2500
    CLS 0.98 within budget ≤0.1
    TBT 2,110 1,918 ≤300
    FCP 2,557 2,859 ≤1000
    Speed Index 29,157 28,986 ≤3000

    And it is stable, which matters more than the single number. All three runs:

    before   LCP  93654, 95178, 95137      3 of 3 at ~94s
    after    LCP   2859,  2880,  2862      0 of 3, tight
    after   perf   0.53,  0.53,  0.53
    

    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:

    before   /jobs     93654, 95178, 95137     3 of 3
    before   /contact  93066,  2708, 92986     2 of 3   ← same artifact, different page
    before   /support   2565,  2557,  2602     0 of 3
    

    And in the new run it has moved again:

    after    /privacy  93075, 93067, 93097     3 of 3
    after    /terms    93064,  2561, 93087     2 of 3
    after    /support   2559, 93059, 93414     2 of 3
    after    /jobs      2859,  2880,  2862     0 of 3
    after    /contact   2711,  2705,  2560     0 of 3
    

    Roughly 93 seconds is not a render time. It is maxWaitForLoad: 90000 plus 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 /contact while 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 /jobs problem 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.

  5. thinkclay commented on Sep 17, 2026

    @thinkclay
    ContributorAuthor

    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 maxWaitForLoad rather than a measurement, and a ratchet set from this run would record that as the baseline.

  6. thinkclay commented on Sep 17, 2026

    @thinkclay
    ContributorAuthor

    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 with pnpm prepush saturating the machine, and the local api edge function with it: the route loader's getFromApi hit 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_MS in apps/scaffald/utils/public-content-loader.ts for 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.

  7. thinkclay commented on Sep 17, 2026

    @thinkclay
    ContributorAuthor

    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 at apps/scaffald/server/index.js (the existing Express path, compression() + immutable on /_expo), and the numbers change completely.

    Honest baseline, main + #789

    Bundle transferred: 3.19 MB (was 17.42 MB).

    page FCP LCP TTI TBT SpeedIdx perf
    / 931 931 23,463 4,286 5,516 0.66
    /contact 779 779 22,212 3,102 4,958 0.67
    /jobs 2,264 2,264 22,886 3,395 7,540 0.59
    /privacy 783 783 22,251 3,106 4,245 0.68
    /support 2,264 2,264 22,185 3,122 5,421 0.59
    /terms 1,672 1,672 22,238 3,092 5,390 0.65

    The 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:

    • TTI ≈ 22 seconds, on every page, tightly clustered (22,134–23,463). The page paints in under 2.3s and then cannot be interacted with for twenty more.
    • TBT 3,100–4,300 ms — and note this went up from the inflated run's ~1,700–2,100 ms. That is not a regression: previously most of the measurement window was spent waiting on the network, so the parse-and-execute work fell outside it. Now the window contains the work, and TBT is measuring the CPU cost that was always there.

    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.

  8. thinkclay commented on Sep 17, 2026

    @thinkclay
    ContributorAuthor

    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/core bundled 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 — and lucide-react (1.07 MB of it) is imported exactly once in the repo, for two icons in BreadcrumbIcons.web.tsx, while 369 other files use lucide-react-native.

    Structurally there is no route-level splitting, so /privacy downloads 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.

  9. thinkclay commented on Sep 17, 2026

    @thinkclay
    ContributorAuthor

    All five boxes are done.

    box how
    /jobs LCP in line with the other pages #783 — rows server-rendered; 94 s → 3.0 s on the mobile preset
    Understand the CLS 0.98 #782 → #785 — the server rendered a 1280px desktop for every device; now per-request. CLS 0.981 → 0.000
    Server-render the first page, weighed against #679/#681 #783 seeds react-query from the loader (one tree); the #681-class failure that did remain was #786 → #790, a bundling split, not this
    Accessibility ≥ 0.95 on / and /contact #792 — 0.87 / 0.92 → 1.0 / 1.0 (and /jobs, /terms at 1.0). Three defects, all the #638 shape: radios without aria-checked, tabs without a tablist, and the cookie banner's stray <h6> (Scaffald/ui#30)
    Budgets from measured reality with a ratchet #785 set them from medians + headroom; #792 ratchets accessibility back up to 0.95 now that it is met

    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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrontendUXbug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions