1. Taming INP with `scheduler.yield()`
Long tasks (> 50ms) prevent the browser from painting user feedback on taps and clicks. By breaking heavy state updates into discrete chunks with `await scheduler.yield()`, UI button states reflect user input in under 12ms while secondary computations finish immediately afterward.
2. Perfect Zero-CLS Typography Loading
We use `@font-face` definitions with exact `size-adjust`, `ascent-override`, and `descent-override` values mapped to system fallback fonts. When the web font finishes loading, it occupies the exact pixel height and width of the fallback text, completely eliminating visible layout jump.
- Always provide immediate visual feedback on pointerdown before heavy execution begins.
- Self-host Google fonts to save DNS lookup roundtrips on initial mobile connections.
- Run Lighthouse in throttling mode representing real low-end 4G mobile devices.