caridy (2014-12-19T02:13:33.000Z)
d at domenic.me (2015-01-05T21:08:09.293Z)
Axel, we have discussed the minimum set of requirements to get modules implemented by vendors asap (and there is certainly interest). Proposal for phase one: ```html <script type="module">...</script> <script type="module" src="foo.js"></script> ``` What does this means? * no loader (if you need on-demand loading, you can insert script tags with type=module, similar to what we do today for scripts) * no hooks or settings (if you need more advanced features, you will have to deal with those manually) Open questions: * how to fallback? ideally, we will need a way to detect modules support, equivalent to <noscript> in semantic. * we need to reserve some resolution rules to support mappings and hooks in the future (e.g.: `import foo from "foo/mod.js"` will not work because `foo` will require loader configs or hooks to be defined, while `import foo from “./foo/mod.js”` and `import foo from “//cdn.com/foo/mod.js”` will work just fine). Again, these are the basic ideas to get modules implemented soon. There are many other quirks, we should probably post something before the next meeting.