Every interface waits for something: a page, a search, an upload. What the user sees during that wait decides whether it feels like progress or like something broke.
Skeleton screens, spinners and progress bars all say “working on it”. They are not interchangeable. Each fits a different length of wait and a different kind of work.
This article sets out how to choose between them, how to avoid the common mistakes, and what a loading state needs for screen reader users and for a stable layout.
Start with the length of the wait
Nielsen Norman Group’s response time limits are a useful frame:
- About 0.1 seconds feels instantaneous. Showing the result is enough.
- About 1 second keeps the user’s flow of thought. They notice the delay, but do not need a special indicator.
- About 10 seconds is the limit for holding attention. Longer waits need an indication of how long remains, and ideally a way to cancel.
You rarely know the exact duration in advance, but you usually know the range. A cached list, a search across a large dataset and a video export land in different bands. Design the loading state for the band.
Choose the pattern
NN/g’s guidance on skeleton screens combines wait length with what is loading:
| Situation | Pattern |
|---|---|
| Under about 1 second | Nothing extra. A flashing indicator makes the interface feel harder to follow, not faster. |
| A full page or screen, under about 10 seconds | Skeleton screen |
| One module, such as a card or a video, under about 10 seconds | Spinner in that module |
| Anything over about 10 seconds | Progress bar with an estimate of what remains |
| A process: upload, download, conversion, multi-step task | Progress bar or step indicator, whatever the length |
Two decisions sit behind the table. Is the user waiting for content or for a process? And can you measure progress? A skeleton describes content that is about to appear. A progress bar describes work that is under way.
Skeleton screens
A skeleton screen shows a wireframe of the page that is loading: grey blocks where the heading, text and images will be. NN/g describes the benefit as giving users a sense of the page’s structure before the content arrives, which reduces the jolt of a blank page followed by a full one.
Three rules keep skeletons honest.
- Match the real layout. The skeleton should have the same structure and dimensions as the loaded page. If the blocks are a different shape, the page jumps when the content replaces them.
- Show content structure, not only the frame. NN/g recommends against a “frame-display” skeleton, which shows only the header, footer and an empty background. It gives no sense of what is coming, and a long wait on it looks like a failure.
- Keep the animation calm. A shimmer or pulse signals activity, but NN/g notes that such animation can be distracting or cause accessibility problems for some users. Respect the user’s reduced-motion setting.
.skeleton-line {
height: 1em;
border-radius: 4px;
background: var(--surface-muted);
animation: skeleton-pulse 1.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
.skeleton-line { animation: none; }
}
Skeletons also help layout stability. If a skeleton reserves the same space as the final content, nothing moves when the data arrives. Google’s Cumulative Layout Shift metric counts unexpected movement, and a CLS of 0.1 or less is rated good. A skeleton that is shorter than the content it stands for adds to that score instead of preventing it. The same principle applies to images, covered in serving responsive images without slowing LCP.
Spinners
A spinner says the system is working and nothing more. That is enough for short, local waits: a card refreshing, a button submitting, a preview generating.
- Put it where the change will happen. A spinner inside the card that is refreshing tells the user what is loading. A full-screen overlay for one card blocks everything else.
- Delay it slightly. If most responses arrive in well under a second, show the spinner only when the wait passes a short threshold. Otherwise fast responses produce a flicker.
- Keep the trigger in place. When a button starts an action, keep the button and show its busy state in it, so the user’s focus and position are not lost. Designing a usable focus path covers why removing the focused element is a problem.
- Do not let it spin forever. Set a timeout and replace the spinner with a message and a retry when it passes.
Progress bars
For long waits and for processes, a progress bar answers the question a spinner cannot: how much longer?
HTML has a native element for it. MDN documents that <progress> without a value attribute is indeterminate, which suits work that has started but cannot yet be measured. Give it a label.
<label for="upload-progress">Uploading report.pdf</label>
<progress id="upload-progress" max="100" value="40">40%</progress>
A progress bar is only as good as its estimate. A bar that races to 90% and stays there teaches users to distrust it. If progress cannot be measured, say what step the process is on (“Converting file, step 2 of 3”) rather than inventing a percentage.
For waits beyond about 10 seconds, NN/g’s response-time guidance also calls for a way to interrupt. A cancel button next to the bar is often enough.
Make loading accessible
A loading state is visual by default. A screen reader user needs the same information in another form.
- Announce the waiting state. WCAG 2.2 4.1.3 Status Messages (AA) covers messages about the waiting state of an application and the progress of a process. They must be exposed through a role or property, such as
role="status", so assistive technology can present them without moving focus. - Mark the region as busy.
aria-busy="true"tells assistive technology that a region is being updated and to wait before presenting changes. Set it back tofalsewhen loading finishes. - Hide the skeleton itself. Grey blocks have no meaning when read aloud. Mark the skeleton
aria-hidden="true"and announce the loading state in text. - Keep announcements sparse. Announce the start, meaningful milestones and the end. A progress bar that announces every percent is noise.
<section aria-busy="true" aria-labelledby="orders-heading">
<h2 id="orders-heading">Recent orders</h2>
<p role="status">Loading orders…</p>
<div class="skeleton" aria-hidden="true">…</div>
</section>
Plan for when loading ends
A loading state has three possible endings, and each needs a design:
- Content. Replace the skeleton in place, without a layout jump, and update the status message (“12 orders loaded”) or clear it.
- No content. An empty result is not an error. It needs its own explanation and a next step. Designing useful empty states covers that screen.
- Failure or timeout. Say what failed in plain words, keep whatever the user entered, and offer a retry. A skeleton that never resolves is the worst outcome: it promises content that is not coming.
The short version: under a second, show nothing extra; for a page, use a skeleton that matches the real layout; for one module, use a local spinner with a timeout; for anything long or process-like, use a progress bar that tells the truth. In every case, tell assistive technology what is happening and design the ending as carefully as the wait.
Conversation
Discussion
Loading comments…