| UI or UX | UI + UX - Bounded indeterminate wait indicator for a named action or region | UI + UX - Bounded content loading placeholder | UI + UX - Unbounded loading anti-pattern | UI + UX - Recoverable failure surface |
| UI guidance | Render a compact spinner only beside, inside, or over the affected action, component, or page region, and pair it with concise text that names what is loading or processing. | Keep skeleton dimensions stable, mark the affected region busy, and use subtle or reduced-motion-respecting animation only while loading is unresolved. | Replace an unlabeled endless spinner with a bounded loading surface that names the operation, preserves the affected context, and changes state after the wait threshold. | Render a persistent error region near the affected content with a specific failure heading, plain-language cause, preserved context, and recovery actions. |
| UX guidance | Prevent duplicate or conflicting actions while the operation is in flight, but keep context, status, safe cancellation, and timeout recovery available when the wait exceeds the expected threshold. | Reduce uncertainty and layout shift while predictable content loads, then resolve clearly to real content, empty state, or error state. | Help users decide whether to wait, retry, leave safely, use stale data, or escalate instead of forcing them to infer system health from animation alone. | Match the next action to the failure cause: retry transient failures, edit correctable input, use cached fallback for read-only continuity, or provide support reference when recovery is outside the UI. |
| Good UI | A Pay invoice button becomes Processing payment with a small spinner, disables only duplicate payment actions, and leaves the invoice reference visible. | The interface shows a clear action and state. | Billing data is loading shows the affected account, elapsed wait, and actions for Retry, Use cached values, and Contact support after timeout. | A failed save state keeps the draft visible and labels the support reference separately from the user-facing explanation. |
| Bad UI | A search results panel shows skeleton rows, a spinner, and a progress bar for the same request. | Skeleton rows look like clickable report cards and receive focus before content exists. | A Save button turns into a spinner forever, leaving the user unable to cancel, retry, or know whether the save happened. | Tiny transient toast for a blocking failure. |
| Good UX | After submit, users see payment PAY-2048 processing, can tell the button is temporarily unavailable, and then get either success or retry guidance. | Users see that reports are pending, then can switch the demo to loaded, empty, or error outcomes on a bounded path. | The user can wait briefly, see that billing data is delayed, open cached values, retry once, or escalate with a reference. | User input and filter context are preserved after failure, and retry returns to recovered content or a clear still-failed state. |
| Bad UX | The spinner blocks the whole workspace for a small table refresh and prevents users from continuing other work. | Large layout shift after content arrives. | A failed backend response is hidden behind a permanent spinner. | Clearing work after save failure. |
| Best fit | The operation has defined resolution, timeout, cancellation, or failure paths. | The content shape is predictable. | Use this anti-pattern entry to audit loading, saving, syncing, uploading, report generation, billing retrieval, AI generation, and import flows that can hang. | A system or task failure blocks expected content or action. |
| Avoid when | The content layout is predictable and a skeleton would better preserve structure. | A specific progress indicator or blocking message is required. | A short spinner is clearly labeled, tied to a specific action, and guaranteed to transition quickly. | Nothing exists yet and the state is expected. |
| Required state | Inline processing state for a button or small local action. | Initial skeleton placeholder state with region marked busy. | Initial pending state that names the operation and affected object. | Normal expected state before failure. |
| Accessibility burden | Give the spinner or affected region an accessible name that identifies the operation. | Mark the loading region busy or provide concise status text. | Give progress indicators accessible names that identify the operation or affected region. | Use appropriate alert or status semantics for newly appearing critical errors. |
| Common misuse | Showing an unlabeled spinner on a blank page. | Showing skeletons forever. | Animating a full-page spinner forever after a request times out. | Using a transient toast for critical errors. |