{"action":"created","issue":{"url":"https://api.github.com/repos/tomchentw/react-google-maps/issues/92","labels_url":"https://api.github.com/repos/tomchentw/react-google-maps/issues/92/labels{/name}","comments_url":"https://api.github.com/repos/tomchentw/react-google-maps/issues/92/comments","events_url":"https://api.github.com/repos/tomchentw/react-google-maps/issues/92/events","html_url":"https://github.com/tomchentw/react-google-maps/issues/92","id":99761251,"number":92,"title":"Pick up a script loader and provide as a optional Compoent","user":{"login":"tomchentw","id":922234,"avatar_url":"https://avatars.githubusercontent.com/u/922234?v=3","gravatar_id":"","url":"https://api.github.com/users/tomchentw","html_url":"https://github.com/tomchentw","followers_url":"https://api.github.com/users/tomchentw/followers","following_url":"https://api.github.com/users/tomchentw/following{/other_user}","gists_url":"https://api.github.com/users/tomchentw/gists{/gist_id}","starred_url":"https://api.github.com/users/tomchentw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomchentw/subscriptions","organizations_url":"https://api.github.com/users/tomchentw/orgs","repos_url":"https://api.github.com/users/tomchentw/repos","events_url":"https://api.github.com/users/tomchentw/events{/privacy}","received_events_url":"https://api.github.com/users/tomchentw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"tomchentw","id":922234,"avatar_url":"https://avatars.githubusercontent.com/u/922234?v=3","gravatar_id":"","url":"https://api.github.com/users/tomchentw","html_url":"https://github.com/tomchentw","followers_url":"https://api.github.com/users/tomchentw/followers","following_url":"https://api.github.com/users/tomchentw/following{/other_user}","gists_url":"https://api.github.com/users/tomchentw/gists{/gist_id}","starred_url":"https://api.github.com/users/tomchentw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomchentw/subscriptions","organizations_url":"https://api.github.com/users/tomchentw/orgs","repos_url":"https://api.github.com/users/tomchentw/repos","events_url":"https://api.github.com/users/tomchentw/events{/privacy}","received_events_url":"https://api.github.com/users/tomchentw/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-08-08T02:29:00Z","updated_at":"2015-09-07T16:45:27Z","closed_at":null,"body":"## Why\r\n\r\nInspired by #81 , I think it would be great if we could provide a `<Component>` that will load this module.\r\n\r\n## Candidates\r\n\r\nhttps://tomchentw.github.io/xrossref/#ZG96b2lzY2gvcmVhY3QtYXN5bmMtc2NyaXB0LCBzeXN0ZW1qcy9zeXN0ZW1qcywgZGVkL3NjcmlwdC5qcywgU2xleEF4dG9uL3llcG5vcGUuanMsIGdldGlmeS9MQUJqcywgd2Vzc21hbi9kZWZlci5qcw==\r\n\r\n## Thoughts\r\n\r\nSince `System.js` seems to be the best, future proof library ATM, I think it would be great to implement this feature with it. However, it seems to be too overkilled for a simple feature to use ~13KB in minified, ungzipped bundle.\r\n\r\nI was thinking if we could provide a tiny polyfill when `System` is not exist:\r\n\r\n```js\r\nconst loadScript = System.import || function (url) {\r\n  return new Promise((resolve, reject) => {\r\n    // add <script> tag to <head> and resolve when loaded.\r\n  });\r\n}\r\n// Use it like this\r\nloadScript(\"https://maps.googleapis.com/maps/api/js\").then(fn);\r\n```\r\n\r\nIs this polyfill matches what System.js do? Or will there be any problem associate with it?\r\n\r\n## References\r\n\r\n```text\r\nhttps://github.com/whatwg/loader/issues/43\r\nhttps://github.com/systemjs/systemjs/issues/384\r\n```"},"comment":{"url":"https://api.github.com/repos/tomchentw/react-google-maps/issues/comments/138339254","html_url":"https://github.com/tomchentw/react-google-maps/issues/92#issuecomment-138339254","issue_url":"https://api.github.com/repos/tomchentw/react-google-maps/issues/92","id":138339254,"user":{"login":"Bazze","id":1932208,"avatar_url":"https://avatars.githubusercontent.com/u/1932208?v=3","gravatar_id":"","url":"https://api.github.com/users/Bazze","html_url":"https://github.com/Bazze","followers_url":"https://api.github.com/users/Bazze/followers","following_url":"https://api.github.com/users/Bazze/following{/other_user}","gists_url":"https://api.github.com/users/Bazze/gists{/gist_id}","starred_url":"https://api.github.com/users/Bazze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bazze/subscriptions","organizations_url":"https://api.github.com/users/Bazze/orgs","repos_url":"https://api.github.com/users/Bazze/repos","events_url":"https://api.github.com/users/Bazze/events{/privacy}","received_events_url":"https://api.github.com/users/Bazze/received_events","type":"User","site_admin":false},"created_at":"2015-09-07T16:45:27Z","updated_at":"2015-09-07T16:45:27Z","body":"Hey! Any progress on this?"}}