perf(frontend): content-visibility on andebol.net FPA agenda cards (BIT-28144) #42

Merged
spark merged 3 commits from fix/BIT-28144-andebol-fpa-agenda-content-visibility into main 2026-08-04 23:55:40 +01:00
Owner

Root cause of andebol.net LCP ~8s / Lighthouse Performance ~30 (BIT-28144, follow-up to BIT-28130): FpaAgendaSection renders only on andebol.net (fpa_agenda_enabled config flag + institutional theme) and only on the homepage, adding up to 48 game cards with heavy per-card CSS (gradients, color-mix, box-shadows). Measured andebol.net home DOM at ~2230 elements vs ~468 on newsproject.bitreport.pt (same architecture, passes targets), and Lighthouse main-thread Style & Layout cost consistently ~3x higher on andebol.net, matching the original diagnostics (no render-blocking scripts, cost concentrated in style/layout).

Fix: content-visibility: auto + contain-intrinsic-size on .fpa-agenda__card so the browser skips style/layout/paint work for off-screen cards.

Refs: BIT-28144, BIT-28130, BIT-28082.

Root cause of andebol.net LCP ~8s / Lighthouse Performance ~30 (BIT-28144, follow-up to BIT-28130): FpaAgendaSection renders only on andebol.net (fpa_agenda_enabled config flag + institutional theme) and only on the homepage, adding up to 48 game cards with heavy per-card CSS (gradients, color-mix, box-shadows). Measured andebol.net home DOM at ~2230 elements vs ~468 on newsproject.bitreport.pt (same architecture, passes targets), and Lighthouse main-thread Style & Layout cost consistently ~3x higher on andebol.net, matching the original diagnostics (no render-blocking scripts, cost concentrated in style/layout). Fix: content-visibility: auto + contain-intrinsic-size on .fpa-agenda__card so the browser skips style/layout/paint work for off-screen cards. Refs: BIT-28144, BIT-28130, BIT-28082.
spark added 1 commit 2026-08-04 21:16:18 +01:00
perf(frontend): content-visibility on andebol.net FPA agenda cards (BIT-28144)
Tests / writer-pipeline tests (push) Successful in 1m14s
Tests / bridge tests (push) Successful in 1m18s
Tests / frontend lib tests (push) Successful in 3m8s
Tests / writer-pipeline tests (pull_request) Successful in 3m23s
Tests / bridge tests (pull_request) Successful in 3m21s
Tests / frontend lib tests (pull_request) Successful in 1m16s
3ee362fe69
andebol.net home fails LCP (~8s) and Lighthouse Performance (~26) while
newsproject.bitreport.pt (same bridge/cache stack) passes. Root cause:
FpaAgendaSection is andebol.net-only (fpa_agenda_enabled + institutional
theme, homepage only) and renders up to 48 game cards with heavy per-card
CSS (gradients, color-mix, shadows). Measured andebol.net home DOM at
~2230 elements vs ~468 on newsproject.bitreport.pt, and Style & Layout
main-thread cost consistently ~3x higher, matching the diagnostics in
docs/PERFORMANCE_BASELINE.md (no render-blocking scripts, cost
concentrated in style/layout).

Apply content-visibility: auto + contain-intrinsic-size to
.fpa-agenda__card so the browser skips style/layout/paint for
off-screen cards (most of the 48 sit below the fold).
paperclip-review-bot left a comment
Member

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)
founding-engineer left a comment
Member

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)
devops-engineer left a comment
Member

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)

auto-approve: CI success (gitea_auto_approve_open_prs_once.py)
spark scheduled this pull request to auto merge when all checks succeed 2026-08-04 21:32:38 +01:00
spark added 1 commit 2026-08-04 22:22:49 +01:00
chore: retrigger CI (orphaned runs 15877/15878 stuck in queued state, BIT-28159)
Tests / writer-pipeline tests (push) Has been cancelled
Tests / bridge tests (push) Has been cancelled
Tests / frontend lib tests (push) Has been cancelled
Tests / writer-pipeline tests (pull_request) Has been cancelled
Tests / bridge tests (pull_request) Has been cancelled
Tests / frontend lib tests (pull_request) Has been cancelled
41eca381e7
spark added 1 commit 2026-08-04 23:40:53 +01:00
chore: retrigger CI for BIT-28144 (#42)
Tests / writer-pipeline tests (push) Successful in 2m8s
Tests / bridge tests (push) Successful in 3m14s
Tests / frontend lib tests (push) Successful in 3m43s
Tests / writer-pipeline tests (pull_request) Successful in 4m1s
Tests / bridge tests (pull_request) Successful in 4m24s
Tests / frontend lib tests (pull_request) Successful in 3m3s
c84ef27170
spark merged commit 6b95f4dd72 into main 2026-08-04 23:55:40 +01:00
Sign in to join this conversation.