{"action":"created","issue":{"url":"https://api.github.com/repos/systemjs/systemjs/issues/586","labels_url":"https://api.github.com/repos/systemjs/systemjs/issues/586/labels{/name}","comments_url":"https://api.github.com/repos/systemjs/systemjs/issues/586/comments","events_url":"https://api.github.com/repos/systemjs/systemjs/issues/586/events","html_url":"https://github.com/systemjs/systemjs/issues/586","id":94827212,"number":586,"title":"Starting without inline script?","user":{"login":"peteruithoven","id":523210,"avatar_url":"https://avatars.githubusercontent.com/u/523210?v=3","gravatar_id":"","url":"https://api.github.com/users/peteruithoven","html_url":"https://github.com/peteruithoven","followers_url":"https://api.github.com/users/peteruithoven/followers","following_url":"https://api.github.com/users/peteruithoven/following{/other_user}","gists_url":"https://api.github.com/users/peteruithoven/gists{/gist_id}","starred_url":"https://api.github.com/users/peteruithoven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peteruithoven/subscriptions","organizations_url":"https://api.github.com/users/peteruithoven/orgs","repos_url":"https://api.github.com/users/peteruithoven/repos","events_url":"https://api.github.com/users/peteruithoven/events{/privacy}","received_events_url":"https://api.github.com/users/peteruithoven/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-07-13T22:34:56Z","updated_at":"2015-07-14T20:48:59Z","closed_at":null,"body":"In all the documentation I find on JSPM / SystemJS it starts with something like the following in a html file. \r\n``` html\r\n<script type=\"text/javascript\">\r\n  System.import('app');\r\n</script>\r\n```\r\nOr \r\n``` html\r\n<script type=\"module\">\r\n  import app from './app';\r\n</script>\r\n```\r\nThe only exception seems to be when using a self-executing bundle.\r\n\r\nIsn't there any way to include an script by url? Something like:\r\n``` html\r\n<script type=\"text/javascript\" src=\"app\"></script>\r\n```\r\nor \r\n``` html\r\n<script type=\"module\" src=\"app\"></script>\r\n```"},"comment":{"url":"https://api.github.com/repos/systemjs/systemjs/issues/comments/121380411","html_url":"https://github.com/systemjs/systemjs/issues/586#issuecomment-121380411","issue_url":"https://api.github.com/repos/systemjs/systemjs/issues/586","id":121380411,"user":{"login":"probins","id":283514,"avatar_url":"https://avatars.githubusercontent.com/u/283514?v=3","gravatar_id":"","url":"https://api.github.com/users/probins","html_url":"https://github.com/probins","followers_url":"https://api.github.com/users/probins/followers","following_url":"https://api.github.com/users/probins/following{/other_user}","gists_url":"https://api.github.com/users/probins/gists{/gist_id}","starred_url":"https://api.github.com/users/probins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/probins/subscriptions","organizations_url":"https://api.github.com/users/probins/orgs","repos_url":"https://api.github.com/users/probins/repos","events_url":"https://api.github.com/users/probins/events{/privacy}","received_events_url":"https://api.github.com/users/probins/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T20:48:59Z","updated_at":"2015-07-14T20:48:59Z","body":"the browser sees app.js as a normal script and runs it, finds 'import' and doesn't know what to do with it. As stated before, if that script tag is type=\"module\", then the browser will leave it alone, and the loader polyfill will find it and load it as a module. However, the polyfill doesn't support src= with type=\"module\" but only inline modules."}}