From 3ee362fe6951a2624031ded0fe5ca47ce3c3dcae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Alves?= Date: Tue, 4 Aug 2026 21:16:06 +0100 Subject: [PATCH 1/3] perf(frontend): content-visibility on andebol.net FPA agenda cards (BIT-28144) 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). --- frontend/src/themes/institutional/FpaAgendaSection.astro | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontend/src/themes/institutional/FpaAgendaSection.astro b/frontend/src/themes/institutional/FpaAgendaSection.astro index d60b95e..357a043 100644 --- a/frontend/src/themes/institutional/FpaAgendaSection.astro +++ b/frontend/src/themes/institutional/FpaAgendaSection.astro @@ -352,6 +352,14 @@ const date_groups = [...by_date.entries()]; } } + .fpa-agenda__card { + /* Up to 48 cards can render on this list (FPA_AGENDA_MAX); most sit below the + fold. content-visibility skips style/layout/paint for off-screen cards, + which is where the bulk of this section's main-thread cost comes from. */ + content-visibility: auto; + contain-intrinsic-size: 0 260px; + } + .fpa-agenda__match { display: flex; flex-direction: column; -- 2.47.3 From 41eca381e7121c2cffed03357b0020f75cc5ad41 Mon Sep 17 00:00:00 2001 From: Miguel Teixeira Date: Tue, 4 Aug 2026 22:22:44 +0100 Subject: [PATCH 2/3] chore: retrigger CI (orphaned runs 15877/15878 stuck in queued state, BIT-28159) -- 2.47.3 From c84ef271703c39928d94450103c838451f203f39 Mon Sep 17 00:00:00 2001 From: Xika Date: Tue, 4 Aug 2026 23:40:50 +0100 Subject: [PATCH 3/3] chore: retrigger CI for BIT-28144 (#42) -- 2.47.3