What problem does it solve?
The client-rendered web experience often shows a suboptimal placeholder or a flashing UI before client-side data loads. This skill guides you to render the correct app-shell or a neutral skeleton at the edge, avoiding jarring transitions and ensuring a stable first paint.
Core Features & Use Cases
- Edge-rendered gating: serve the appropriate shell or skeleton at the edge before the app hydrates.
- Hint cookies and state signals: seed the correct UI for fast, correct rendering on subsequent loads.
- Redirect-back (returnTo) flows: preserve deep links through login and onboarding redirects with safe return handling.
- Testing the loading window: define tests that verify the loaded UI during data resolution and the absence of unnecessary flashes.
Quick Start
Test a gated route by delaying data resolution and verify the initial HTML serves the correct placeholder without flashing.