Repository navigation
perf(web): smooth nested detail motion and resize paint - #62
Merged
Merged
Conversation
This was referenced Aug 28, 2026
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.
Summary
cubic-bezier(0.32, 0.72, 0, 1)compositor motion as Home detail navigationMeasured root causes
Lanterns / browser sidebar
Production
build-105was profiled signed in with Chrome DevTools while repeatedly shrinking and expanding the content viewport to emulate Brave's browser-chrome sidebar. Hiding the hero or its images did not remove the drops; isolating the episode section did. The clipped Embla episode track was being repainted as part of the document on every resize frame.Six controlled open/close cycles on Lanterns:
The full after trace at the 1120px shrunken viewport included scrolling, rapid pointer sweeps, and another resize cycle. It recorded no rAF gaps: resize main-thread max 10.4ms; scroll renderer max 3.851ms; pointer renderer max 5.328ms. Hero/background artwork remained rendered.
Nested detail motion
Before this branch, PR #61 used the right WAAPI distance, duration, and easing, but the destination detail tree was allowed to expand during the final animation frames. Series → Season grew from the 96-element shell to 289/295 elements at 283/300ms and produced a 114.6ms frame gap. Back likewise committed the full Series tree instead of the lightweight shell.
After this branch, both directions commit a 96-element shell at ±196px, hold the same two painted frames as Home, begin movement 50ms after that shell appears, and run the same 300ms easing. The shell remains at 96 elements for the entire motion and details reveal only on completion. Series → Season measured max 17.4ms with no frame above 20ms; Season → Series measured max 17.6ms with no frame above 20ms. Home's transition path and timing were unchanged.
Existing fork work inventoried and preserved
be0fb393f43bf4e7b8861257e6ac41fddf828a2e: Brave/browser-chrome viewport resize performance work.da04355c07e6d4aa54876d64bc6b1e3962994341: broad detail-page transition, hover, pointer, scrolling, and resize performance work; previously deployed as build-104.ea5178fe200c8a5195a3d62275ec785b80fcdfe8: build-105 follow-up. It added desktop nested-detail live main-stage motion using the 196px/300ms shared sidebar easing attempt, detail-carousel layout/paint containment, normal cursor on blank carousel track space with pointer only on actual cards/controls, reduced-motion/browser fallbacks, and focused tests. Current production image digest:sha256:b1e890e7d7e7e418660d3b087d904431abaaf32f3b9d56ff4b8725115a5d4750.680323ce5deaa9862d031b6d54ed474b21f0c103, merged as926511db. It moved season episodes into the existingMediaCarousel, preserving one horizontal row for large seasons and the stable Season 4-style header/layout. Blank carousel space remains the normal cursor; only cards and controls use pointer.Current upstream history was checked read-only. The overlapping performance work in upstream PR Silo-Server#540 (
b29aaf94) was already considered/ported by the preceding fork work; newer quick-action changes are unrelated. This PR does not sync upstream or mix unrelated changes.Verification
Layout.tsxhooks warning remains)auto, interactive episode linkspointerNo production server files, containers, environment, database, or deployment were changed.