{"action":"created","issue":{"url":"https://api.github.com/repos/MiguelCastillo/load-js/issues/1","repository_url":"https://api.github.com/repos/MiguelCastillo/load-js","labels_url":"https://api.github.com/repos/MiguelCastillo/load-js/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/MiguelCastillo/load-js/issues/1/comments","events_url":"https://api.github.com/repos/MiguelCastillo/load-js/issues/1/events","html_url":"https://github.com/MiguelCastillo/load-js/pull/1","id":195415739,"number":1,"title":"Add optional ID parameter","user":{"login":"synaestheory","id":1959636,"avatar_url":"https://avatars.githubusercontent.com/u/1959636?v=3","gravatar_id":"","url":"https://api.github.com/users/synaestheory","html_url":"https://github.com/synaestheory","followers_url":"https://api.github.com/users/synaestheory/followers","following_url":"https://api.github.com/users/synaestheory/following{/other_user}","gists_url":"https://api.github.com/users/synaestheory/gists{/gist_id}","starred_url":"https://api.github.com/users/synaestheory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/synaestheory/subscriptions","organizations_url":"https://api.github.com/users/synaestheory/orgs","repos_url":"https://api.github.com/users/synaestheory/repos","events_url":"https://api.github.com/users/synaestheory/events{/privacy}","received_events_url":"https://api.github.com/users/synaestheory/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-12-14T01:20:54Z","updated_at":"2016-12-14T05:56:47Z","closed_at":"2016-12-14T04:05:15Z","pull_request":{"url":"https://api.github.com/repos/MiguelCastillo/load-js/pulls/1","html_url":"https://github.com/MiguelCastillo/load-js/pull/1","diff_url":"https://github.com/MiguelCastillo/load-js/pull/1.diff","patch_url":"https://github.com/MiguelCastillo/load-js/pull/1.patch"},"body":"This allows for a user to pass in an optional ID parameter to add to the script tag in case they need to reference it later.  \r\n\r\nA sample use case is in the event that the browser does not support document.currentScript and the script needs to be self-referencing to get its source.\r\n\r\nSince load-js sets async to true on the scripts, the following snippet would potentially fail\r\n```\r\nvar currentScript = document.currentScript || (function() {\r\n      var scripts = document.getElementsByTagName('script');\r\n      return scripts[scripts.length - 1];\r\n    })();\r\n// from http://www.2ality.com/2014/05/current-script.html\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/MiguelCastillo/load-js/issues/comments/266949768","html_url":"https://github.com/MiguelCastillo/load-js/pull/1#issuecomment-266949768","issue_url":"https://api.github.com/repos/MiguelCastillo/load-js/issues/1","id":266949768,"user":{"login":"synaestheory","id":1959636,"avatar_url":"https://avatars.githubusercontent.com/u/1959636?v=3","gravatar_id":"","url":"https://api.github.com/users/synaestheory","html_url":"https://github.com/synaestheory","followers_url":"https://api.github.com/users/synaestheory/followers","following_url":"https://api.github.com/users/synaestheory/following{/other_user}","gists_url":"https://api.github.com/users/synaestheory/gists{/gist_id}","starred_url":"https://api.github.com/users/synaestheory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/synaestheory/subscriptions","organizations_url":"https://api.github.com/users/synaestheory/orgs","repos_url":"https://api.github.com/users/synaestheory/repos","events_url":"https://api.github.com/users/synaestheory/events{/privacy}","received_events_url":"https://api.github.com/users/synaestheory/received_events","type":"User","site_admin":false},"created_at":"2016-12-14T05:56:47Z","updated_at":"2016-12-14T05:56:47Z","body":"Thanks so much for the quick response and turn around on this. "}}
{"actor":{"display_login":"synaestheory"}}