1
JavaScriptBeginner#async
Start all the promises first, then await them together with Promise.all. Awaiting inside a loop serialises the requests and multiplies latency.
// slow (sequential) for (const id of ids) await fetchUser(id); // fast (parallel) await Promise.all(ids.map(fetchUser));