{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox.js/issues/1082","labels_url":"https://api.github.com/repos/mapbox/mapbox.js/issues/1082/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox.js/issues/1082/comments","events_url":"https://api.github.com/repos/mapbox/mapbox.js/issues/1082/events","html_url":"https://github.com/mapbox/mapbox.js/issues/1082","id":116958901,"number":1082,"title":"async script load?","user":{"login":"bcherny","id":1761758,"avatar_url":"https://avatars.githubusercontent.com/u/1761758?v=3","gravatar_id":"","url":"https://api.github.com/users/bcherny","html_url":"https://github.com/bcherny","followers_url":"https://api.github.com/users/bcherny/followers","following_url":"https://api.github.com/users/bcherny/following{/other_user}","gists_url":"https://api.github.com/users/bcherny/gists{/gist_id}","starred_url":"https://api.github.com/users/bcherny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcherny/subscriptions","organizations_url":"https://api.github.com/users/bcherny/orgs","repos_url":"https://api.github.com/users/bcherny/repos","events_url":"https://api.github.com/users/bcherny/events{/privacy}","received_events_url":"https://api.github.com/users/bcherny/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-14T23:15:42Z","updated_at":"2015-11-15T03:32:17Z","closed_at":"2015-11-15T03:32:17Z","body":"otherwise mapbox becomes a bottleneck :(\r\n\r\neg. google maps supports JSONP-style callbacks\r\n\r\n```html\r\n<script async defer src=\"//maps.googleapis.com/maps/api/js?callback=foo\"></script>\r\n<script>\r\n  window.foo = function () {\r\n    // loaded!\r\n  }\r\n</script>\r\n```"},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox.js/issues/comments/156775865","html_url":"https://github.com/mapbox/mapbox.js/issues/1082#issuecomment-156775865","issue_url":"https://api.github.com/repos/mapbox/mapbox.js/issues/1082","id":156775865,"user":{"login":"bcherny","id":1761758,"avatar_url":"https://avatars.githubusercontent.com/u/1761758?v=3","gravatar_id":"","url":"https://api.github.com/users/bcherny","html_url":"https://github.com/bcherny","followers_url":"https://api.github.com/users/bcherny/followers","following_url":"https://api.github.com/users/bcherny/following{/other_user}","gists_url":"https://api.github.com/users/bcherny/gists{/gist_id}","starred_url":"https://api.github.com/users/bcherny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcherny/subscriptions","organizations_url":"https://api.github.com/users/bcherny/orgs","repos_url":"https://api.github.com/users/bcherny/repos","events_url":"https://api.github.com/users/bcherny/events{/privacy}","received_events_url":"https://api.github.com/users/bcherny/received_events","type":"User","site_admin":false},"created_at":"2015-11-15T03:32:17Z","updated_at":"2015-11-15T03:32:17Z","body":"I guess the problem that JSONP style callbacks solve is knowing when the script loaded. I can just inject a script and listen to the onload event. Was just wondering if something existed already."}}