AJAX Series: Loading States & Spinners: Real UX During AJAX Calls

Web Development Tutorials on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateDesign Engineering3 min

About this video

The video shows how to show a loading spinner, status text and a disabled button while a slow fetch request is pending, then display the loaded result. It is aimed at developers who already write JavaScript and want their pages to feel responsive during server delays.

What you’ll learn

  • Show a loading spinner while a fetch request is in flight
  • Disable a button until its pending request completes
  • Replace the spinner with the loaded response