STA-001 Show a wait in the part that is loading, not over the whole page
- Level
- Rule
- Verdict
- Unanimous (3 of 3)
- Area
- States
- Status
- decided, version 1.0.3
Rule
When content in one part of a view loads, show the wait in that part, at the control that started it or as a small indicator where the content will appear, never as a layer over the whole page, and keep the rest of the view usable.
Examples
Live examples built with Justified's components. Try them with the mouse, the keyboard or a screen reader.
Do: The wait sits in the table
Orders
| Order | Customer | Total |
|---|---|---|
| 1042 | Linnea Berg | £32.00 |
| 1043 | Omar Haddad | £115.00 |
Don't: A layer over the whole page
Orders
| Order | Customer | Total |
|---|---|---|
| 1042 | Linnea Berg | £32.00 |
| 1043 | Omar Haddad | £115.00 |
Why
Most waits concern one thing: a table after a filter, a panel fetching its data, one button doing its job. A layer over the whole page turns that small wait into a stop for everything. The person cannot read what is already there, cannot change the filter again and cannot tell which part is busy. A wait shown in place says what is loading and lets the person carry on elsewhere. WCAG does not require this placement. WCAG 2.2, 4.1.3 Status Messages applies to the wait wherever it is placed: a visible wait that appears without focus moving is a status message and must be announced, as FBK-004 describes. It says nothing about placement. WCAG 2.2, 2.2.2 Pause, Stop, Hide sets a limit on it, described under Do.
Do
- A person changes the date range on an orders table. The rows dim and a small indicator sits in the table area until the new rows arrive. The date picker, the search field and the side menu keep working.
- A person presses Load more comments at the end of a thread. An indicator appears in the space below the last comment, where the new ones will land, and the comments already shown stay readable.
- A weather panel on a travel page fetches its forecast while the rest of the page is already usable. A small indicator named "Loading forecast" sits in the panel until the data arrives.
- A person presses Export CSV in a toolbar. A small spinner shows inside or beside that button. What the button itself does while it works is covered by STA-005a, and a second press by the guideline STA-005b.
- Give the indicator a name that says what is loading, such as "Loading orders", not just "Loading".
- Avoid several indicators at once. Give each part its own indicator only when the person started each one separately. Parts or items that load together get one indicator for the group.
- If a layer covers only the busy part, make the content under it unreachable by keyboard too (inert), not only hidden from sight. If focus is inside that part, keep it on the control that started the wait, or move it to the indicator or the part's heading, so focus is never lost (KBD-001, KBD-002).
- Inside an open dialog, show the wait inside the dialog, in its button or its content area, as DLG-002 asks.
- Our own choice, not a source's or WCAG's: show nothing for a wait under about half a second, so nothing flashes. When the amount of work becomes known, switch to an indicator that shows how far it has come.
- A loader that starts on its own, runs next to content the person can use and lasts more than five seconds falls under 2.2.2. A loader that starts when the person scrolls a list into view counts as starting on its own. Give a way to stop or hide its motion, or stop the motion after five seconds and leave static text such as "Still loading orders", unless the motion is essential. Respect reduced motion as well, as VIS-006 asks. A spinner that starts because the person pressed something does not start on its own, so it is outside 2.2.2. Doing this helps you work toward 2.2.2; it does not settle it. Moving content that is not a loader is VIS-005.
- When the part fails to load, show the failure in that same part, as FBK-002 asks.
Don't
- Cover the whole page with a dimmed layer and a large spinner while one chart refreshes.
- Freeze the filter panel while the results it controls update, so the person cannot correct a wrong choice.
- Fill one panel or table of a page already in use with placeholder blocks. A small indicator fits there; placeholders belong to the first load of a whole view.
- Remove the content already shown while more items load at the end of a list.
- Open a spinner layer on top of an open dialog.
Exceptions
- First load of a whole view. When the whole page or screen is what is loading, a whole-view indicator is fine. Placeholders that show the real layout are often clearer than a lone spinner, but either is allowed.
- The person's own action that leaves nothing usable. When the person's own action leaves nothing in the view usable until it ends, such as saving or submitting the whole view, a whole-view indicator is fine. A filter, a list loading more rows or one panel fetching data never counts.
- In both cases the layer must not hide keyboard focus (KBD-002) or lower the contrast of the focus indicator seen through it, and the content behind it is inert for the keyboard too, not only covered.
Verdict
Unanimous (3 of 3). Only the judges decide; the expert witnesses are shown but do not vote. How verdicts work
| Source | Role | Stance | Page |
|---|---|---|---|
| WCAG 2.2 | Law | Supports | 4.1.3 Status Messages |
| WCAG 2.2 | Law | Supports | 2.2.2 Pause, Stop, Hide |
| Material Design | Judge | Supports | Progress indicators: guidelines Progress indicators: accessibility |
| Apple Human Interface Guidelines | Judge | Supports | Loading (all platforms; written for native apps and games, not the web) Progress indicators (all platforms; written for native apps, not the web) |
| Carbon Design System | Judge | Supports | Loading: usage Inline loading: usage Loading pattern Button: usage |
| GOV.UK Design System | Expert witness | No position | |
| Nielsen Norman Group | Expert witness | Supports | Skeleton Screens 101, by Samhita Tankala Progress Indicators Make a Slow System Less Insufferable, by Katie Sherwin Response Times: The 3 Important Limits, by Jakob Nielsen |
Each stance links to the page it rests on, read on the date in the source register. This page never repeats what a source says; read the source itself.
History
- Version 1.0.3, : Points to VIS-005 for moving content that is not a loader and to VIS-006 for reduced motion.
- Version 1.0.2, : The button while it works now refers to STA-005a and STA-005b.
- Version 1.0.1, : No longer says that ACT-004 covers a button while it works.
- Version 1.0.0, : First version.
Last checked against the other rules for conflicts on .
More in States: 5 rules and 2 guidelines · All rules
Justified is an independent project. It is not affiliated with, sponsored or endorsed by the organisations whose guidance it cites. Read the full statement.
Apple is a trademark of Apple Inc., registered in the U.S. and other countries and regions.