{"action":"created","issue":{"url":"https://api.github.com/repos/ModuleLoader/es6-module-loader/issues/95","labels_url":"https://api.github.com/repos/ModuleLoader/es6-module-loader/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/ModuleLoader/es6-module-loader/issues/95/comments","events_url":"https://api.github.com/repos/ModuleLoader/es6-module-loader/issues/95/events","html_url":"https://github.com/ModuleLoader/es6-module-loader/issues/95","id":27221761,"number":95,"title":"support <script type=module> within HTML imports","user":{"login":"guybedford","id":598730,"avatar_url":"https://avatars.githubusercontent.com/u/598730?v=3","gravatar_id":"","url":"https://api.github.com/users/guybedford","html_url":"https://github.com/guybedford","followers_url":"https://api.github.com/users/guybedford/followers","following_url":"https://api.github.com/users/guybedford/following{/other_user}","gists_url":"https://api.github.com/users/guybedford/gists{/gist_id}","starred_url":"https://api.github.com/users/guybedford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guybedford/subscriptions","organizations_url":"https://api.github.com/users/guybedford/orgs","repos_url":"https://api.github.com/users/guybedford/repos","events_url":"https://api.github.com/users/guybedford/events{/privacy}","received_events_url":"https://api.github.com/users/guybedford/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2014-02-09T12:20:31Z","updated_at":"2015-03-12T09:38:56Z","closed_at":null,"body":"To summarize `<script type=module>`, there are two forms - an anonymous form with module code inside:\r\n\r\n```html\r\n<script type=\"module\">\r\n  import 'x';\r\n  x.y();\r\n</script>\r\n```\r\n\r\nand a named form for loading from external module files:\r\n\r\n```html\r\n<script type=\"module\" src=\"some/module.js\" />\r\n```\r\n\r\nIn both cases, the parsing of the tag above can immediately trigger the fetch cycle for modules, which will in turn fetch their dependencies.\r\n\r\nExecution itself is deferred only until the execution thread of the HTML page reaches that point in the page, just like a normal script tag.\r\n\r\nThis behaviour then needs to thread into HTML imports in the same way as for a script tag - that is with the delayed execution following the import readiness, and the parser triggering the tree loading."},"comment":{"url":"https://api.github.com/repos/ModuleLoader/es6-module-loader/issues/comments/78448773","html_url":"https://github.com/ModuleLoader/es6-module-loader/issues/95#issuecomment-78448773","issue_url":"https://api.github.com/repos/ModuleLoader/es6-module-loader/issues/95","id":78448773,"user":{"login":"MajorBreakfast","id":340142,"avatar_url":"https://avatars.githubusercontent.com/u/340142?v=3","gravatar_id":"","url":"https://api.github.com/users/MajorBreakfast","html_url":"https://github.com/MajorBreakfast","followers_url":"https://api.github.com/users/MajorBreakfast/followers","following_url":"https://api.github.com/users/MajorBreakfast/following{/other_user}","gists_url":"https://api.github.com/users/MajorBreakfast/gists{/gist_id}","starred_url":"https://api.github.com/users/MajorBreakfast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MajorBreakfast/subscriptions","organizations_url":"https://api.github.com/users/MajorBreakfast/orgs","repos_url":"https://api.github.com/users/MajorBreakfast/repos","events_url":"https://api.github.com/users/MajorBreakfast/events{/privacy}","received_events_url":"https://api.github.com/users/MajorBreakfast/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T09:38:56Z","updated_at":"2015-03-12T09:38:56Z","body":"@guybedford `type=\"module\"` can be implicit by having import statements in the script."}}