Sub topic 7
Timing: Response-Time Thresholds and Progress Indication
This chapter covers how long feedback should take and what form it should take for operations of different lengths. It assumes you know the interaction loop and the gulf of evaluation from earlier chapters. You should also be comfortable reading basic HTML, CSS, and JavaScript. The goal is to choose a feedback pattern based on how long an operation is expected to take, and to implement it so that it is also accessible.
Why timing is part of feedback
Feedback has two properties that matter: what it says and when it arrives. A perfectly worded "Saved" message that appears four seconds after the click still leaves the user uncertain for those four seconds. During that time the gulf of evaluation is wide. The user cannot tell whether the click registered, whether the system is working, or whether it has failed.
Timing also shapes the user's conceptual model. A response that comes at once feels like direct manipulation, as if the user touched the object itself. A delayed response feels like sending a request to something else and waiting for an answer. Both are legitimate, but the interface should signal which one is happening.
The three response-time thresholds
Usability research, summarized by Jakob Nielsen from earlier work by Robert Miller and others, describes three rough limits. They come from human perception and attention, so they stay stable even as hardware gets faster.
| Threshold | What the user experiences | What the interface should do |
|---|---|---|
| About 0.1 seconds | The system seems to react instantly. The user feels they directly caused the result. | Show the result itself. No extra indicator is needed. |
| About 1 second | The user notices the delay but their train of thought stays intact. | Show that the system received the action. A subtle indicator is enough. |
| About 10 seconds | This is the limit of keeping attention on the task. Beyond it, users switch to other things. | Show a progress indicator, allow cancellation, and let the user do something else if possible. |
Treat these as design guides, not exact laws. The numbers are approximate, and the right pattern also depends on context. A game has a much stricter budget for input response than a report generator.
Under 0.1 seconds: instant
A hover color, a pressed state, a toggle flipping, and a character appearing in a text field all fall in this range. The response is the feedback. Adding a spinner here would make things worse, because the spinner would flash and vanish before anyone could read it.
In the CSS example from the Topic Spine, the :hover and :active rules work at this level. The browser repaints within a frame, so the button seems to move under the finger or pointer.
Up to 1 second: acknowledge
Operations such as opening a dialog that needs a small fetch, or navigating to a lightweight page, fall here. The user does not need a progress bar. They do need to know the action registered. Typical acknowledgments are:
- A pressed or disabled button state.
- A short change of label, such as "Save" to "Saving…".
- A small inline indicator near the control.
Avoid blocking the whole screen for something this short. A full-page overlay that flashes for 400 milliseconds is more disruptive than the delay it covers.
One to ten seconds: show that work is happening
In this range the user will wait but wants evidence of life. A looping indicator, often called a spinner or busy indicator, is the standard choice. It says "working" but not "how much is left." The user's attention is still on the task, so keep the indicator close to where the action happened.
Beyond ten seconds: show progress and offer control
After about ten seconds a looping animation is no longer enough. An animation that never changes looks the same whether the system is working or frozen. The user needs three things:
- A sense of how far along the work is.
- A way to cancel, or to leave and come back.
- Some idea of how long it will take.
Choosing an indicator: determinate or indeterminate
A progress indicator is either determinate or indeterminate.
- A determinate indicator shows a known fraction of completion, such as a bar at 40 percent. Use it when the system can measure progress, for example bytes uploaded out of total bytes, or files processed out of a known count.
- An indeterminate indicator shows only that work is happening, such as a spinner or a bar sliding back and forth. Use it when the duration is unknown.
Prefer determinate indicators for anything that may last more than a few seconds and can be measured. Research on perceived waiting time suggests that visible progress makes the same wait feel shorter and more acceptable than an unmarked wait.
The risk with determinate bars is dishonesty. A bar that races to 90 percent and then sits there for a minute is worse than a spinner, because it makes a promise it breaks. If progress is uneven, show steps ("Step 2 of 4: Resizing images") or counts ("312 of 1,200 files") instead of a fake smooth percentage.
Skeleton screens and perceived performance
For page and list loading, a skeleton screen shows gray placeholder shapes in the layout of the content that is coming. Compared with a blank page or a lone spinner, a skeleton does two jobs. It confirms that the system is loading, and it tells the user what the layout will be, which reduces visual jumping when the content arrives.
Skeletons suit loads of roughly one to a few seconds where the structure is predictable. They are a poor fit for very short waits, where they flash, and for very long waits, where they give no sign of real progress.
Related techniques that change how long a wait feels, without changing the wait itself, include:
- Showing partial content as soon as it is available, instead of waiting for everything.
- Optimistic updates, where the interface shows the expected result at once and corrects it only if the server rejects the action. This works for low-risk, highly reliable actions such as liking a post. It is risky for payments or deletions, where showing a false success is harmful.
- Doing work in the background and letting the user keep going.
Edge cases and common errors
Flashing indicators
If a spinner appears at once and the operation finishes in 150 milliseconds, the user sees a flicker they cannot interpret. A common fix is to delay showing the indicator by a short time, often 200 to 300 milliseconds. If the work finishes first, the indicator never appears. The opposite problem also exists. If the indicator appears and then disappears almost at once, enforce a minimum display time, such as 500 milliseconds, so it reads as a deliberate state.
No feedback on failure
A spinner that never stops is a failure with no feedback. Every wait needs an exit: a success state, or an error state with a recovery path. Set a timeout and handle it. The next chapter on error messages covers what to write when that happens.
Duplicate submissions
If the control stays active during a delay, impatient users click again. This can create two orders, two messages, or two charges. The usual defense is to disable the control while the request is pending, as in the Topic Spine's JavaScript example. For critical operations, also make the server idempotent, meaning that repeating the same request has the same effect as sending it once.
Disabled controls with no explanation
Disabling a button during a request is good. Disabling a button with no reason given, for example a form's submit button that stays gray with no hint about missing fields, leaves the user guessing. Pair disabled states with visible text explaining what is happening or what is needed.
Mismatched indicator and duration
A progress bar for a 300-millisecond action is noise. A bare spinner for a ten-minute export is neglect. Match the pattern to the expected duration, and revisit the choice if real durations drift, for example when data grows and a once-fast report now takes 30 seconds.
Blocking when not necessary
A modal overlay that stops all interaction tells the user nothing else is possible. Use it only when the operation really requires exclusive access. If the user can reasonably keep working, keep the rest of the interface usable.
Implementation: a delayed indicator with an announced status
The following example combines several ideas: the control is disabled while pending, an indicator only appears if the operation takes longer than 300 milliseconds, the indicator stays visible for at least 600 milliseconds, and a status region announces the outcome to assistive technology.
<button id="export" type="button">Export report</button>
<progress id="bar" max="100" hidden aria-label="Export progress"></progress>
<p id="status" role="status"></p>
<script>
const button = document.getElementById("export");
const bar = document.getElementById("bar");
const status = document.getElementById("status");
const SHOW_AFTER_MS = 300;
const MIN_VISIBLE_MS = 600;
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
async function fakeExport(onProgress) {
for (let i = 1; i <= 10; i++) {
await sleep(250);
onProgress(i * 10);
}
}
button.addEventListener("click", async () => {
button.disabled = true;
status.textContent = "Exporting report…";
let shownAt = null;
const timer = setTimeout(() => {
bar.value = 0;
bar.hidden = false;
shownAt = Date.now();
}, SHOW_AFTER_MS);
try {
await fakeExport((percent) => { bar.value = percent; });
status.textContent = "Report exported.";
} catch (error) {
status.textContent = "Export failed. Check your connection and try again.";
} finally {
clearTimeout(timer);
if (shownAt !== null) {
const elapsed = Date.now() - shownAt;
if (elapsed < MIN_VISIBLE_MS) await sleep(MIN_VISIBLE_MS - elapsed);
}
bar.hidden = true;
button.disabled = false;
}
});
</script>Points to notice in this code:
- The
<progress>element is a native determinate indicator. Browsers expose its value to assistive technology, andaria-labelgives it a name. - The
role="status"region is a live region. Screen readers announce changes to its text without moving focus. - The
finallyblock runs on success and on failure, so the button can never stay disabled forever. - The timer is cleared in
finally, so a fast operation never triggers the indicator.
Accessibility and reduced motion
Timing feedback relies heavily on motion, so check these points:
- Provide a text equivalent for every animated indicator. A spinner alone tells screen reader users nothing.
- Respect the
prefers-reduced-motionmedia query. Replace spinning or sliding animations with a static or slowly pulsing indicator for users who ask for less motion. - Avoid flashing content, since rapid flashing can trigger seizures in some people.
- If a wait can end in a timeout, give users enough time to read messages and act. Do not remove an error message automatically after a few seconds.
@media (prefers-reduced-motion: reduce) {
.spinner {
animation: none;
}
}Summary of decision criteria
- Estimate the expected duration, including slow cases.
- Match the pattern to the duration band: result, acknowledgment, busy indicator, or progress with control.
- Use determinate indicators only when progress is measurable and honest.
- Delay short indicators and keep them on screen long enough to read.
- Prevent duplicate actions and always provide an exit from the wait.
- Announce state changes to assistive technology, but not every tick.
Exercise
A "Generate invoice PDF" button usually finishes in about 600 milliseconds, but takes 20 seconds when a customer has thousands of line items. The server can report how many line items it has processed. Which feedback would you design for each case, and what would you do to avoid a flickering indicator in the fast case?
Show answer
Fast case: acknowledge immediately by disabling the button and changing its label to "Generating…". Delay any spinner or bar by about 300 milliseconds so it does not appear for operations that finish quickly. Slow case: because the server reports processed line items, use a determinate indicator such as a progress bar with text like "4,200 of 12,000 line items", add a cancel option, and let the user continue other work if possible. In both cases, announce the start and the result in a role="status" region (not every progress tick), and show an error with a retry option if the request fails or times out.
Exercise
A team replaces every spinner in their app with a progress bar that fills smoothly over a fixed 8 seconds, regardless of actual progress. What problems does this cause, and what would you do instead?
Show answer
The bar makes a false promise. If the work finishes early, the bar still waits. If the work takes longer, the bar sits at 100 percent or stalls, which looks like a failure and erodes trust. It also gives no real information to help users decide whether to wait. Instead, use a determinate bar only where real progress is measurable (bytes, items, steps). Where it is not, use an indeterminate indicator, or show named steps, and always pair longer waits with cancel and a clear success or error outcome.