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
3 Commits
Author SHA1 Message Date
Xika c84ef27170 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
2026-08-04 23:40:50 +01:00
miguel-teixeira 41eca381e7 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
2026-08-04 22:22:44 +01:00
José Alves 3ee362fe69 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
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).
2026-08-04 21:16:06 +01:00