From Overreacted · · 4m
TL;DR: Progressive JSON: stop waiting for the last byte
Why JSON's all-or-nothing wire format wastes time, and how sending the tree breadth-first with placeholders unlocks progressive loading.
Send your data tree outside-in with placeholders for the slow parts, so one slow query stops holding up everything behind it. Why JSON's all-or-nothing wire format wastes time, and how sending the tree breadth-first with placeholders unlocks progressive loading. A progressive JPEG shows a fuzzy version of the whole image first, then sharpens it.
- Borrow the progressive JPEG trick
- A simple blog payload
- JSON is all or nothing
- One slow query blocks everything
Read the story version — the same reporting as a swipeable deck of 20 cards.





