Load data in parallel with async components
Start all requests up front and hand the pending promises to your markup: everything loads at the same time, while the output order stays the same.
Components in Jeasx can be async and simply await their data. But the renderer resolves them one after another, so three components that each wait one second take three seconds in total. As JSX also accepts promises as children, starting the requests early avoids this. Switch between both modes: the bars below show when each request started and finished.
Requests
sequentialWaiting for Ada...
Waiting for Grace...
Waiting for Linus...