perf(frontend): content-visibility on andebol.net FPA agenda cards (BIT-28144) #42
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user