3 ms·
True, but I interpreted the OP as criticising any execution of code on module load (other than declaring exports). Unless loading a file is a bottleneck, which
by thomasfoster96 10y ago
True, but I interpreted the OP as criticising any execution of code on module load (other than declaring exports).
Unless loading a file is a bottleneck, which I doubt.
- dangoor 10y ago> Unless loading a file is a bottleneck, which I doubt. Loading a file is a bottleneck in the browser, right?
- thomasfoster96 10y agoRight, but I don't see how top level await makes the current situation any worse. Web developers already have to think about the order of script loading and execution.