3 ms·
Inline <script type="module"> is executed after DOMContentLoaded. Inline <script> is executed during parsing. https://html.spec.whatwg.org/multipage/scripting
by chrismorgan 6y ago
Inline <script type="module"> is executed after DOMContentLoaded.
Inline <script> is executed during parsing.
https://html.spec.whatwg.org/multipage/scripting.html#the-script-element https://html.spec.whatwg.org/multipage/scripting.html#the-sc... gives the full details of the interactions between type, src, defer and async. Inline scripts are normally referred to as script elements where the src attribute is not present.
- andrewmcwatters 6y agoWow, thanks for that detail. That's some obscura to me.