Skip to content

perf(web): eliminate detail-page resize and interaction jank - #60

Merged
blurbery merged 1 commit into
mainfrom
fix/detail-transitions-resize-perf
Aug 28, 2026
Merged

blurbery merged 1 commit into
mainfrom
fix/detail-transitions-resize-perf

Conversation

@blurbery

Copy link
Copy Markdown
Owner

What this fixes

  • Keeps the full detail hero artwork while isolating its copy and scrims from continuous viewport-resize repaint work. This addresses the slow-motion effect caused when browser chrome changes the content viewport, including Brave's built-in hover sidebar.
  • Coalesces Embla carousel remeasurement during animated resizing, while preserving the existing wheel-gesture carousel behavior and immediate slide-content updates.
  • Uses compositor-only opacity feedback for Continue Watching, episode rows, trailers, extras, and shared detail controls; adds async image decoding and defers off-screen detail rails for smoother hover sweeps and scrolling.
  • Adds consistent direction-aware transitions for Movie, Series, Season, Episode, person, genre, ebook, and manga navigation without animating variable document geometry.
  • Reuses real parent history entries for Series, Season, and Episode returns, preventing duplicate entries and the back-navigation loop.
  • Keeps transition provenance across reloads, safely handles rapid navigation, and bounds history tracking for long-running sessions.
  • Gives enabled buttons and menu/select actions a consistent hand pointer while retaining disabled-state feedback.

Why

Chrome profiling showed detail heroes repainting their foreground during every intermediate viewport width and each carousel rebuilding from ResizeObserver notifications. Affected Series, Season, Episode, and Movie views produced roughly 150-250 ms resize frames. Isolating the detail copy and settling carousel measurements brought the profiled path back to roughly 16.7 ms frames while preserving the hero and existing design.

This extends the performance work already carried from upstream PR Silo-Server#540 rather than replacing or duplicating it.

Validation

  • 20 focused Vitest files, 156 tests passed
  • TypeScript project build passed
  • ESLint on changed TypeScript/TSX files: 0 errors; one pre-existing Layout effect warning
  • Prettier and git diff checks passed
  • Chrome resize profiling covered Home, Movie, Series, Season, and Episode paths, including continuous browser-viewport resizing

@blurbery
blurbery merged commit da04355 into main Aug 28, 2026
3 checks passed
@blurbery
blurbery deleted the fix/detail-transitions-resize-perf branch November 6, 2026 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant