Skip to main content

Loading Spinner

UI Design

What is a Loading Spinner

A loading spinner is an animated circular icon that shows the system is busy. It tells users that something is happening in the background, such as loading data or saving a form, without saying how long it will take. Older sources call it a throbber.

How a Loading Spinner works

A spinner is an indeterminate indicator. It loops until the task ends. It can appear on its own, inside a button, or over a section of the page that is updating.

When to use a Loading Spinner

  • Use it for waits of about 2 to 10 seconds
  • Skip it for waits under 1 second, where a flash of animation distracts
  • Replace it with a progress bar for waits over 10 seconds
  • Prefer a skeleton for full-page loads

Loading Spinner best practices

Place the spinner where the content will appear or inside the button that started the action. Add a short label for longer waits, such as "Saving". Give it an accessible name so screen reader users also know the page is busy.

Frequently asked questions

When should you use a loading spinner?

For waits of about 2 to 10 seconds where you cannot tell how long the task will take. For shorter waits, show nothing; for longer ones, use a progress bar with a percentage.

What is the difference between a spinner and a progress bar?

A spinner is indeterminate: it shows that something is happening but not how long it will take. A determinate progress bar shows how much is done and how much is left.

What is the difference between a spinner and a skeleton screen?

A spinner is a generic animation. A skeleton screen shows the layout of the content that is loading, which works better for full-page loads.