{"action":"created","issue":{"url":"https://api.github.com/repos/LateRegistration/lr-front/issues/13","repository_url":"https://api.github.com/repos/LateRegistration/lr-front","labels_url":"https://api.github.com/repos/LateRegistration/lr-front/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/LateRegistration/lr-front/issues/13/comments","events_url":"https://api.github.com/repos/LateRegistration/lr-front/issues/13/events","html_url":"https://github.com/LateRegistration/lr-front/issues/13","id":147985490,"number":13,"title":"Replace jQuery ajax with something smaller","user":{"login":"bafxyz","id":892175,"avatar_url":"https://avatars.githubusercontent.com/u/892175?v=3","gravatar_id":"","url":"https://api.github.com/users/bafxyz","html_url":"https://github.com/bafxyz","followers_url":"https://api.github.com/users/bafxyz/followers","following_url":"https://api.github.com/users/bafxyz/following{/other_user}","gists_url":"https://api.github.com/users/bafxyz/gists{/gist_id}","starred_url":"https://api.github.com/users/bafxyz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bafxyz/subscriptions","organizations_url":"https://api.github.com/users/bafxyz/orgs","repos_url":"https://api.github.com/users/bafxyz/repos","events_url":"https://api.github.com/users/bafxyz/events{/privacy}","received_events_url":"https://api.github.com/users/bafxyz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-13T08:32:56Z","updated_at":"2016-04-13T09:49:22Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/LateRegistration/lr-front/issues/comments/209343436","html_url":"https://github.com/LateRegistration/lr-front/issues/13#issuecomment-209343436","issue_url":"https://api.github.com/repos/LateRegistration/lr-front/issues/13","id":209343436,"user":{"login":"websoftwares","id":946561,"avatar_url":"https://avatars.githubusercontent.com/u/946561?v=3","gravatar_id":"","url":"https://api.github.com/users/websoftwares","html_url":"https://github.com/websoftwares","followers_url":"https://api.github.com/users/websoftwares/followers","following_url":"https://api.github.com/users/websoftwares/following{/other_user}","gists_url":"https://api.github.com/users/websoftwares/gists{/gist_id}","starred_url":"https://api.github.com/users/websoftwares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/websoftwares/subscriptions","organizations_url":"https://api.github.com/users/websoftwares/orgs","repos_url":"https://api.github.com/users/websoftwares/repos","events_url":"https://api.github.com/users/websoftwares/events{/privacy}","received_events_url":"https://api.github.com/users/websoftwares/received_events","type":"User","site_admin":false},"created_at":"2016-04-13T09:49:22Z","updated_at":"2016-04-13T09:49:22Z","body":"how about native xhr?\r\n\r\nvar xhr = new XMLHttpRequest();\r\nxhr.open('GET', encodeURI('myservice/username?id=some-unique-id'));\r\nxhr.onload = function() {\r\n    if (xhr.status === 200) {\r\n        alert('User\\'s name is ' + xhr.responseText);\r\n    }\r\n    else {\r\n        alert('Request failed.  Returned status of ' + xhr.status);\r\n    }\r\n};\r\nxhr.send();"}}