4 ms·
top level await is not important. The easiest solution to this is just put one single line of code at the top of your application, then you can have as many aw
by andrewstuart 8y ago
top level await is not important.
The easiest solution to this is just put one single line of code at the top of your application, then you can have as many awaits as you like under that.
- nailer 8y agoIt's more complex than just adding an IIFE, which is why Ryan mentioned it. You can't await an import, for example.