Does anyone know the timing of dynamic import() statements in the browser?

Importing a module with <script type=module> will defer module execution until after DomContentLoaded, but if you add 'async', it will run as soon as it is fetched. Which does import() do?

Follow

References to specs, test suites, or implementation issue trackers especially appreciated.

Sign in to participate in the conversation
Mastodon

a Schelling point for those who seek one