Skip to content

wai-handler-launch: Improvements to ping's javascript script.#494

Merged
snoyberg merged 1 commit intoyesodweb:masterfrom
mihaigiurgeanu:wai-handler-launch_ping-improvements
Jan 22, 2017
Merged

wai-handler-launch: Improvements to ping's javascript script.#494
snoyberg merged 1 commit intoyesodweb:masterfrom
mihaigiurgeanu:wai-handler-launch_ping-improvements

Conversation

@mihaigiurgeanu
Copy link
Copy Markdown

@mihaigiurgeanu mihaigiurgeanu commented Dec 21, 2015

  • Avoid using the browser's cache for the response.

Because the ping request uses GET method, IE returns the response from
cache and does not send the ping request to the server causing the server
to shut down.

  • Make the javascript use the asynchronous ajax request instead of
    synchronous request.

This fixes the warning displayed in Chrome: Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.

- Avoid using the browser's cache for the response. IE returns the
response from cache and does not send the ping request to the server
causing the server to shut down.

- Make the javascript use the asynchronous ajax request instead of
synchronous. This fixes the warning 'Synchronous XMLHttpRequest on the
main thread is deprecated because of its detrimental effects to the end
user's experience. For more help, check http://xhr.spec.whatwg.org/.'
displayed in the Chrome browser.
@mihaigiurgeanu mihaigiurgeanu changed the title Improvements to ping's javascript script. wai-handler-launch: Improvements to ping's javascript script. Oct 7, 2016
@snoyberg snoyberg merged commit 728f7f3 into yesodweb:master Jan 22, 2017
@snoyberg
Copy link
Copy Markdown
Member

Sorry for the delay on this, it slipped through the cracks somehow. Thank you!

snoyberg added a commit that referenced this pull request Feb 23, 2017
@mihaigiurgeanu mihaigiurgeanu deleted the wai-handler-launch_ping-improvements branch April 12, 2017 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants