diff --git a/components/dom/RouteTransitionOverlay.tsx b/components/dom/RouteTransitionOverlay.tsx index 5a623aa..3c9677c 100644 --- a/components/dom/RouteTransitionOverlay.tsx +++ b/components/dom/RouteTransitionOverlay.tsx @@ -153,10 +153,20 @@ export default function RouteTransitionOverlay() { // Intent → cover (original effect 1). useEffect(() => { if (targetHref && mode === "idle") { + // startNavigation() resets readyToLoadHeavy, but the bus only notifies + // on NEW marks. When every REQUIRED key is already done (any visit to + // "/" after the first), no notification ever fires again, so the + // route:wait reveal gate for a "/" target would never pass — the + // curtain stays covering the page (dots background + header only). + // Restore the gate immediately when the snapshot is already ready; + // genuinely-pending assets still notify through the subscription. + if (loadingBus.getSnapshot().ready) { + setReadyToLoadHeavy(true); + } routeFrom.current = { path: pathname, coverDone: false }; setTransition({ mode: "route", phase: "cover" }); } - }, [targetHref, mode, pathname]); + }, [targetHref, mode, pathname, setReadyToLoadHeavy]); // Entry wait → reveal (original effect 2): fires as soon as the gates // pass — the reveal is NOT held for the progress-bar fade timers.