Async optimization patterns to eliminate sequential delays.
CRITICAL priority - Waterfalls are the #1 performance killer.
Key patterns:
Promise.all() for independent operations (2-10× improvement)await into branches where actually usedWaterfalls occur when async operations run sequentially instead of in parallel. Each sequential await adds full network latency.
When operations have no interdependencies, execute concurrently:
Multiple useQuery hooks run in parallel automatically:
Move await into branches where actually used:
Use Suspense to stream content:
Use browser DevTools Performance tab to identify waterfalls:
Promise.all() or SuspenseBefore optimization:
After optimization:
For more detailed technical guidance, see these reference files:
On this page