JavaScript
Networking and Data Fetching
Learn to read JSON, wait for the server to respond, and handle loading and failure states. That's what separates a demo from a product people can rely on.
Start the trackFree, no sign-up needed
What you'll learn
- Reading and writing JSONTurn text into objects
- Fetching data with awaitAwait the data, then show it
- The four statesLoading, success, failure and empty results
- RetryingDon't give up after the first failure
- Parallel requestsThe slowest request's time, not the total
- Request timeoutsPut a limit on the wait
- Aborting stale requestsOnly the latest search's results show up
- Caching requestsOne request per ID
Track contents
8 lessons, 2 hours in total- 1Reading and writing JSONJavaScriptTurn text into objects11 min
- 2Fetching data with awaitJavaScriptAwait the data, then show it13 min
- 3The four statesJavaScriptLoading, success, failure and empty results15 min
- 4RetryingJavaScriptDon't give up after the first failure14 min
- 5Parallel requestsJavaScriptThe slowest request's time, not the total13 min
- 6Request timeoutsJavaScriptPut a limit on the wait13 min
- 7Aborting stale requestsJavaScriptOnly the latest search's results show up15 min
- 8Caching requestsJavaScriptOne request per ID14 min
More Web tracks
All tracks- </>Beginner
Web Basics
Start with your very first HTML tag and finish with a complete interactive app.
8 lessons1.5 hours - { }Intermediate
CSS in Depth
Go deeper into the box model, custom properties, positioning, container queries and more, so you understand what's really going on behind the styles you see.
8 lessons1.5 hours - { }Beginner
Text and Typography
Learn to scale headings, choose the right units, and set line length and text direction, because text is what people read most in any interface.
8 lessons1.5 hours