Merge pull request 'perf(frontend): content-visibility on andebol.net FPA agenda cards (BIT-28144)' (#42) from fix/BIT-28144-andebol-fpa-agenda-content-visibility into main
Tests / writer-pipeline tests (push) Successful in 2m13s
Tests / frontend lib tests (push) Successful in 2m10s
Tests / bridge tests (push) Successful in 2m12s

This commit was merged in pull request #42.
This commit is contained in:
spark committed 2026-08-04 23:55:38 +01:00
commit 6b95f4dd72
1 file changed
+8
@@ -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 { .fpa-agenda__match {
display: flex; display: flex;
flex-direction: column; flex-direction: column;