The noModule
property of the HTMLScriptElement
interface is a boolean value that indicates whether the script should be executed in browsers that support ES modules. Practically, this can be used to serve fallback scripts to older browsers that do not support JavaScript modules.
It reflects the nomodule
attribute of the <script>
element.
nomodule | True False |
Specifies that the script should not be executed in browsers supporting ES2015 modules |