From 93714d2683febefc751d1b77490b7efc700f419f Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Tue, 23 Jun 2026 00:51:34 +0200 Subject: [PATCH] Fix: Add unoptimized to hero poster to fix 4.8s LCP delay and restore optimizeCss --- components/blocks/HeroVideo.tsx | 1 + next.config.mjs | 1 + 2 files changed, 2 insertions(+) diff --git a/components/blocks/HeroVideo.tsx b/components/blocks/HeroVideo.tsx index 009cf9373..fcbe0e028 100644 --- a/components/blocks/HeroVideo.tsx +++ b/components/blocks/HeroVideo.tsx @@ -87,6 +87,7 @@ export function HeroVideo(props: HeroVideoProps) { src={posterSrc} alt={posterAlt} fill + unoptimized className="object-cover z-[1] pointer-events-none filter contrast-125 saturate-110 brightness-90" sizes="100vw" priority diff --git a/next.config.mjs b/next.config.mjs index f79a25db5..2c141a319 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -15,6 +15,7 @@ const nextConfig = { pagesBufferLength: 2, }, experimental: { + optimizeCss: true, staleTimes: { dynamic: 0, static: 30,