---
name: design-instant-feel
description: "Foundational: apply while planning or first building a page or feature, because these choices are expensive to change later. Make a tool feel instant: no loading screens or spinners on common actions, apply changes optimistically and sync in the background, keep data the user will need already on the client, preload on intent, and set an explicit latency budget for core interactions. Also: don't stream partial output when seeing mistakes mid-way makes people stop and correct. Use when building actions that wait on the server, adding spinners/skeletons/loading states, designing a Hotwire/Turbo or SPA interaction, or when an app 'feels slow' even though requests are fast."
---

# Instant feel

**When:** upfront for the architecture (where data lives, optimistic updates, no blocking round-trips), since retrofitting it is a rewrite. Preloading on hover and trimming spinners can also be done in a later polish pass.

For tools people use all day, speed is the product. Linear compares latency to a pen whose ink appears a second after you draw: technically working, practically unusable. Their founder spent months building a sync engine before features, because perceived speed was the foundation everything else stood on. This skill is about perceived speed, not server-side performance.

## Principles

- **The data is already here.** Keep what the user will touch next on the client: the current list, the records it links to, menu contents. Clicking shows it immediately instead of asking the server and waiting.
- **Change locally, sync in the background.** Update the UI the moment the user acts (optimistic update), send the change, and reconcile or roll back with a clear message only on failure. Never block the next action on the previous round-trip.
- **No loading screens for common actions.** A spinner on something people do every few seconds is a design bug. Reserve loading states for genuinely remote, rare, slow things.
- **Preload on intent.** Fetch when the pointer approaches or hovers a link/menu trigger, or on pointer-down instead of click (Turbo prefetch, `data-turbo-preload`, lazy turbo-frames triggered on hover).
- **One system, not per-feature hacks.** A shared data layer (sync engine, or in Rails: Turbo Streams + broadcasts + optimistic Stimulus) makes every feature fast by default and keeps keyboard actions and UI consistent.

## Latency budgets

Give core interactions a number and design to it. Wispr Flow budgets 700ms from releasing the dictation key to text appearing: ~200ms speech recognition, ~200ms cleanup model, ~200ms network, plus buffer. A budget turns "fast" into decisions engineers can make.

## Don't stream when partial output invites correction

Showing words as they're recognized seems like what users want (they ask for it), but one wrong word makes them stop and fix it by hand. Show a small "working" indicator and deliver the finished result at once. Stream only when the partial output is useful to read, not something to judge.

## Check

- [ ] Common actions update the UI before the server responds
- [ ] No spinner on any action used multiple times per session
- [ ] Hover/approach preloading on menus and frequent links
- [ ] Core interaction has a written latency budget
- [ ] Failure path: optimistic change rolls back visibly with a reason
