Skip to content

Glossary: JavaScript in the Browser

Four states (loading, loaded, empty, failed)

Also written: loading state, empty state, error state

Fetched data is always in one of four states, and each needs something on screen: a loading message, the loaded data, an empty message, or a plain-words error with a way to retry.

Where the book teaches it

Related terms

fetchfinally