I was going through the WHATWG specs for
Classic scripts may specifyor
defer; module scripts may specify
typeattribute set to
Also have a look at https://blog.whatwg.org/js-modules.