To support modules, the value module was added to type options. For example,
Unlike scripts, modules use import to specify other files to be loaded for.
The module type for the script element always behaves as if the defer attribute was applied.
The defer attribute is optional for loading script files but is always applied for loading module files.
The module file starts getting downloaded as soon as the HTML parser encounters a <script type="module"> element.
So all modules are executed in the order in which they appear.