What happens when you call `import('foo.js')` twice? The same modules are cached...

@stefan@front-end.social

What happens when you call `import('foo.js')` twice? The same modules are cached, but what if the first `import` fails and you want to try again? That used to be tricky, but turns out, there's a spec change rolling out as we speak.

joanleon.dev/en/dynamic-import