Repository navigation
perf(web): smooth Home item navigation without full-page snapshots - #74
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this fixes
Opening an item from Home and returning to Home could become visibly jagged, especially after visiting several different items. The desktop route was snapshotting two pages with very different heights while the live sidebar was also moving. Cached detail trees, Home card rows and every hidden hero animation could then compete for the same frames.
This keeps that exact Home/item boundary lightweight while leaving every other route unchanged.
What changed
/↔/item/*navigation. Mobile and every non-Home route keep their existing behavior.will-change; hidden slides no longer animate or re-render their parent when images finish loading.Scope and safeguards
Benchmarks
Measured against the same authenticated library in Chrome at 1200 × 681, DPR 2. The production baseline used five repeated cycles. The patch was exercised through the local Vite server, so absolute route timings are included as diagnostic evidence rather than presented as a production-bundle apples-to-apples claim. DOM, animation-count and lifecycle measurements are exact.
Raw production baseline, five cycles:
The baseline production trace also recorded INP 173 ms, Home→item LCP 1,156 ms, Back LCP 802 ms, CLS 0.05 and 40 ms forced reflow.
Patched checks:
Validation
vitest: 110/110 focused navigation, Home, layout, hero and item-detail tests passedset-state-in-effectwarning remains unchangedAI disclosure
I orchestrated, directed and manually reviewed this work. Codex assisted with implementation, test coverage, browser checks and benchmark collection.