{"action":"created","issue":{"url":"https://api.github.com/repos/whatwg/xhr/issues/193","repository_url":"https://api.github.com/repos/whatwg/xhr","labels_url":"https://api.github.com/repos/whatwg/xhr/issues/193/labels{/name}","comments_url":"https://api.github.com/repos/whatwg/xhr/issues/193/comments","events_url":"https://api.github.com/repos/whatwg/xhr/issues/193/events","html_url":"https://github.com/whatwg/xhr/issues/193","id":298684232,"number":193,"title":"XMLHttpRequest","user":{"login":"nhatchett","id":10154159,"avatar_url":"https://avatars2.githubusercontent.com/u/10154159?v=4","gravatar_id":"","url":"https://api.github.com/users/nhatchett","html_url":"https://github.com/nhatchett","followers_url":"https://api.github.com/users/nhatchett/followers","following_url":"https://api.github.com/users/nhatchett/following{/other_user}","gists_url":"https://api.github.com/users/nhatchett/gists{/gist_id}","starred_url":"https://api.github.com/users/nhatchett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhatchett/subscriptions","organizations_url":"https://api.github.com/users/nhatchett/orgs","repos_url":"https://api.github.com/users/nhatchett/repos","events_url":"https://api.github.com/users/nhatchett/events{/privacy}","received_events_url":"https://api.github.com/users/nhatchett/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-20T17:37:16Z","updated_at":"2018-02-20T18:53:34Z","closed_at":"2018-02-20T17:48:08Z","author_association":"NONE","body":"Why are you removing the abilility to execute an XMLHttpRequest syncronously?\r\n\r\nI agree that that misuse of this feature can create unresponsive web pages but careful use (i.e.  in the pagehide event) enables AJAX based feed back mechanisms to work on some popular yet awkward browsers (i.e. Firefox).\r\n\r\nMost sensible web developers are aware that misusing this feature is undesirable and use the asyncronous option. I feel that removing such a feature because of its detrimental effects to the end user's experience is a very poor decision akin to chopping of a childs hand because it does not know how to use it.\r\n\r\nI assume the decision is based on the lowest common denominator principle - when a few are morons treat us all like morons."},"comment":{"url":"https://api.github.com/repos/whatwg/xhr/issues/comments/367080192","html_url":"https://github.com/whatwg/xhr/issues/193#issuecomment-367080192","issue_url":"https://api.github.com/repos/whatwg/xhr/issues/193","id":367080192,"user":{"login":"nhatchett","id":10154159,"avatar_url":"https://avatars2.githubusercontent.com/u/10154159?v=4","gravatar_id":"","url":"https://api.github.com/users/nhatchett","html_url":"https://github.com/nhatchett","followers_url":"https://api.github.com/users/nhatchett/followers","following_url":"https://api.github.com/users/nhatchett/following{/other_user}","gists_url":"https://api.github.com/users/nhatchett/gists{/gist_id}","starred_url":"https://api.github.com/users/nhatchett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhatchett/subscriptions","organizations_url":"https://api.github.com/users/nhatchett/orgs","repos_url":"https://api.github.com/users/nhatchett/repos","events_url":"https://api.github.com/users/nhatchett/events{/privacy}","received_events_url":"https://api.github.com/users/nhatchett/received_events","type":"User","site_admin":false},"created_at":"2018-02-20T18:53:33Z","updated_at":"2018-02-20T18:53:33Z","author_association":"NONE","body":"Hi There\n\n \n\nUnfortunately 'navigator.sendBeacon()' is Experimental and cannot be used in\na live production application.\n\n \n\nI need a solution I can rely on being around for the foreseeable future (the\nsite is currently used by thousands of UK train drivers for safety\ntraining).\n\n \n\nIn short I want to send data to a server when a driver leaves the training\npage.\n\n \n\nUsing a synchronous AJAX call is the only way I currently know of updating\nmy server in the PageHide event that works on the 5 browsers I support\n(Google, Apple, Micrososft and Firefox - Desktop and Mobile).\n\n \n\nThis is the ONLY reason, to date, I have found to use synchronous\nXMLHttpRequest I/O.\n\n \n\nMy reason for using this feature is because it exists, it works and does not\ncause my users any problems which seems like a good reason to me.\n\n \n\nRegards\n\n \n\nNigel\n\n \n\n \n\n  _____  \n\nFrom: Anne van Kesteren [mailto:notifications@github.com] \nSent: 20 February 2018 17:48\nTo: whatwg/xhr\nCc: nhatchett; Author\nSubject: Re: [whatwg/xhr] XMLHttpRequest (#193)\n\n \n\nPlease use navigator.sendBeacon() instead for that purpose. It's not a good\nreason for synchronous I/O.\n\nMarking this as a duplicate of #20 <https://github.com/whatwg/xhr/issues/20>\n.\n\n-\nYou are receiving this because you authored the thread.\nReply to this email directly, view it\n<https://github.com/whatwg/xhr/issues/193#issuecomment-367059921>  on\nGitHub, or mute\n<https://github.com/notifications/unsubscribe-auth/AJrwrwBC52SwW9quk0PeJ7UcI\n6OEJzY9ks5tWwVbgaJpZM4SMWSL>  the thread.\n<https://github.com/notifications/beacon/AJrwrxSSIHmkavmo-PnQyp2q6UJ9VgQYks5\ntWwVbgaJpZM4SMWSL.gif> \n\n\n \n\n"}}
{"actor":{"display_login":"nhatchett"}}