Using the <script> Element to Link External Files
Examples
Module fallback
Browsers that support the module
value for the type
attribute ignore
any script with a nomodule
attribute. That enables you to use module scripts while also providing nomodule
-marked
fallback scripts for non-supporting browsers.
<script type="module" src="main.js"></script> <script nomodule src="fallback.js"></script>