Waiting for multiple all API responses to complete with the vanilla JS Promise.all() method
In yesterday’s article, I mentioned that I recently worked on a pretty big vanilla JS app.
On some pages, we needed to wait for multiple API requests to complete before rendering content. Today, I want to show you a simple way to do that with the Promise.all() method.
How I learned this As I was trying to figure this out, I discovered that Steve Griffith (who’s video on composition vs.