web: load the main image on event and news pages eagerly

This commit is contained in:
ponas committed 2026-10-14 01:36:36 +02:00
1 parent 3dd5b80a23
commit a005cb2a34
2 files changed
+6

No files matched your search

@@ -49,6 +49,9 @@ export const EventHeader = ({ event }: { event: EventFragment }) => {
height={featuredImage.height} height={featuredImage.height}
attribution={featuredImage.attribution} attribution={featuredImage.attribution}
sizes="(max-width: 1000px) 100vw, 55vw" sizes="(max-width: 1000px) 100vw, 55vw"
// the page's largest element, at the top of it
loading="eager"
fetchPriority="high"
/> />
)} )}
</div> </div>
+3
View File
@@ -59,6 +59,9 @@ export function NewsPageView({ news }: NewsPageViewProps) {
height={featuredImage.height} height={featuredImage.height}
attribution={featuredImage.attribution} attribution={featuredImage.attribution}
sizes="100vw" sizes="100vw"
// the page's largest element, at the top of it
loading="eager"
fetchPriority="high"
/> />
)} )}
</section> </section>