Using `Promise.all` to make your app load quicker

In my case half the time it did take!

How does await work?

Why don’t parallise these?

BEFORE:await doThis();
await doThat();
await doSomethingElse();
AFTERawait Promise.all([
doThis(),
doThat(),
doSomethingElse(),
])

Results

Before
After: note how the scale has changed here too

Founder of EveryHour.xyz and Product Owner @ dunnhumby; just genuinely interested in a lot of things. Built racecars, built electronics, now building software

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store