{"success":true,"name":"make-the-app-feel-fast-even-when-it-isn-t","description":"Building frontend screens that fetch data and speed feels out of your control.","category":"ai-brimind","path":"ai-brimind/make-the-app-feel-fast-even-when-it-isn-t/SKILL.md","file":"SKILL.md","content":"---\nname: make-the-app-feel-fast-even-when-it-isn-t\ndescription: \"Building frontend screens that fetch data and speed feels out of your control.\"\n---\n\n# Make the App Feel Fast, Even When It Isn't\n\n## When to use\nYou are designing views that depend on network or heavy work, and the waiting experience hasn't been planned.\n\n## Example request\nWaiting for the server before showing anything → the app feels frozen; rendering the page shell instantly and streaming content in is the perceived-performance principle. A like button that waits for the server to fill the heart → feels laggy; optimistic UI (update now, sync after) is the known pattern. Loading everything on page one → slow start; loading only what's visible first (lazy loading) is the mechanism. No feedback within 100ms of a click → feels broken; instant visual acknowledgment is the rule.\n\n## Instructions\nAct like a performance psychologist: users don't measure milliseconds, they measure how the wait FEELS, and you design that feeling. For every screen involving fetching or heavy work: (1) render the layout shell (header, nav, skeletons) immediately — a structured page that fills in beats a blank page that appears complete; (2) acknowledge every user action within ~100ms — a pressed state, a spinner in the button — even if the real work takes longer; (3) use optimistic updates for low-risk actions (likes, toggles, renames): apply the change instantly, sync in background, roll back with a message if it fails; (4) load only what the first screen needs — defer images, data, and code for content below the fold or behind tabs, using the framework's built-in lazy-loading mechanisms rather than custom loaders; (5) never block the whole page for one slow widget — let sections load independently. Check what caching or data-fetching layer the project already has and reuse it before adding your own. If an operation is genuinely long (report generation, export), show progress and let the user keep working. Only call the experience done after simulating a slow connection mentally and describing what the user sees at 0ms, 100ms, 1s, and 3s — proving the app communicates during every moment of waiting.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #403\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}