{"action":"created","issue":{"url":"https://api.github.com/repos/systemjs/systemjs/issues/272","labels_url":"https://api.github.com/repos/systemjs/systemjs/issues/272/labels{/name}","comments_url":"https://api.github.com/repos/systemjs/systemjs/issues/272/comments","events_url":"https://api.github.com/repos/systemjs/systemjs/issues/272/events","html_url":"https://github.com/systemjs/systemjs/issues/272","id":52578262,"number":272,"title":"Asynchronous loading of systemjs causes errors when importing","user":{"login":"nathanathan","id":710024,"avatar_url":"https://avatars.githubusercontent.com/u/710024?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanathan","html_url":"https://github.com/nathanathan","followers_url":"https://api.github.com/users/nathanathan/followers","following_url":"https://api.github.com/users/nathanathan/following{/other_user}","gists_url":"https://api.github.com/users/nathanathan/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanathan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanathan/subscriptions","organizations_url":"https://api.github.com/users/nathanathan/orgs","repos_url":"https://api.github.com/users/nathanathan/repos","events_url":"https://api.github.com/users/nathanathan/events{/privacy}","received_events_url":"https://api.github.com/users/nathanathan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-12-20T22:13:35Z","updated_at":"2015-02-17T21:58:41Z","closed_at":"2014-12-21T14:14:05Z","body":"I am asynchronously loading System.js so I can use it in a bookmarklet.\r\n\r\nOn line 2162 of system@0.9.3.src.js I'm getting this error when I try to import scripts additional in Chrome:\r\n\r\n```Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened.```\r\n"},"comment":{"url":"https://api.github.com/repos/systemjs/systemjs/issues/comments/74763406","html_url":"https://github.com/systemjs/systemjs/issues/272#issuecomment-74763406","issue_url":"https://api.github.com/repos/systemjs/systemjs/issues/272","id":74763406,"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},"created_at":"2015-02-17T21:58:41Z","updated_at":"2015-02-17T21:58:41Z","body":"@gobengo thanks for sharing - I do think the better way around this is to manually include `es6-module-loader.js` in scenarios where SystemJS isn't aware of how to do a `document.write` style injection."}}