diff --git a/components/providers/InitialLoader.tsx b/components/providers/InitialLoader.tsx index 6e03c32fd..cbbf9f00e 100644 --- a/components/providers/InitialLoader.tsx +++ b/components/providers/InitialLoader.tsx @@ -72,8 +72,8 @@ export function InitialLoader({ shouldShowLoader = true }: { shouldShowLoader?: {/* Sweeping intense white light */} @@ -91,9 +91,9 @@ export function InitialLoader({ shouldShowLoader = true }: { shouldShowLoader?: className="h-[2px] w-full bg-white/5 overflow-hidden relative rounded-full" > diff --git a/components/providers/PageTransitionShutter.tsx b/components/providers/PageTransitionShutter.tsx index 6a2f52180..84b2ffb55 100644 --- a/components/providers/PageTransitionShutter.tsx +++ b/components/providers/PageTransitionShutter.tsx @@ -12,12 +12,12 @@ export function PageTransitionShutter() { {isTransitioning && ( diff --git a/components/providers/TransitionProvider.tsx b/components/providers/TransitionProvider.tsx index 295b3e28e..937e4f608 100644 --- a/components/providers/TransitionProvider.tsx +++ b/components/providers/TransitionProvider.tsx @@ -27,14 +27,8 @@ export function TransitionProvider({ children }: { children: ReactNode }) { const [hasMountedShutter, setHasMountedShutter] = useState(false); const router = useRouter(); - // Load the heavy shutter chunk in the background when the main thread is idle - useEffect(() => { - if (typeof window !== 'undefined' && 'requestIdleCallback' in window) { - window.requestIdleCallback(() => setHasMountedShutter(true)); - } else { - setTimeout(() => setHasMountedShutter(true), 2000); - } - }, []); + // We no longer eagerly load the shutter in the background. + // It will be loaded precisely when the user initiates a transition. // We use a ref to track transition state without triggering the route change effect when it turns true const isTransitioningRef = React.useRef(isTransitioning); diff --git a/public/assets/eu-flag.webp b/public/assets/eu-flag.webp index ffa732a63..029da40d5 100644 Binary files a/public/assets/eu-flag.webp and b/public/assets/eu-flag.webp differ diff --git a/public/assets/videos/web/hero-kabelpflug-poster-mobile.webp b/public/assets/videos/web/hero-kabelpflug-poster-mobile.webp index 9fcd03734..16749d11b 100644 Binary files a/public/assets/videos/web/hero-kabelpflug-poster-mobile.webp and b/public/assets/videos/web/hero-kabelpflug-poster-mobile.webp differ diff --git a/public/assets/videos/web/hero-kabelpflug-poster.webp b/public/assets/videos/web/hero-kabelpflug-poster.webp index 98456f7b7..35ee349da 100644 Binary files a/public/assets/videos/web/hero-kabelpflug-poster.webp and b/public/assets/videos/web/hero-kabelpflug-poster.webp differ