web: add eager loading to featured event images on home page

This commit is contained in:
2026-05-19 21:32:56 +02:00
parent 9ca9f5db11
commit 4a264c589d
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -20,10 +20,12 @@ export const EventItem = ({
event,
mode,
size,
imageLoading,
}: {
event: SingularEvent | EventFragment;
mode: "list" | "calendar" | "singular-time-only";
size?: "small" | "medium" | "large";
imageLoading?: "eager" | "lazy";
}) => {
const futureOccurrences = getFutureOccurrences(event);
const groupedOccurrences = groupConsecutiveDates(
@@ -47,6 +49,7 @@ export const EventItem = ({
width={0}
height={0}
sizes="(max-width: 900px) 100vw, 25vw"
loading={imageLoading}
/>
)}
</div>