Rethinking loading states for the modern web

Simon Schwartz
Apr 8, 2019 · 3 min read
Image for post
Image for post
Windows XP loading screen

1. Start to consider stalled states

Image for post
Image for post
An example of updating our loading UI when we detect a stalled state

Benefits

Demo


2. Batch relevant UI updates together

Image for post
Image for post
Updates are staggered 😓

Image for post
Image for post
Updates are batched together 😇

Benefits

Demo

Demo of batching 2 seperate requests together. The Haiku content and Haiku metadata are 2 seperate requests

DailyJS

JavaScript news and opinion.

Thanks to Dominik Wilkowski

Simon Schwartz

Written by

Developer from Sydney, Australia. Aspiring to communicate complex topics in simple ways. Engineer at Australian Broadcasting Corporation.

DailyJS

DailyJS

JavaScript news and opinion.

Simon Schwartz

Written by

Developer from Sydney, Australia. Aspiring to communicate complex topics in simple ways. Engineer at Australian Broadcasting Corporation.

DailyJS

DailyJS

JavaScript news and opinion.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store