Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synchronous call of XMLHttpRequest is not good #41

Open
fpawel opened this issue Feb 21, 2018 · 1 comment
Open

Synchronous call of XMLHttpRequest is not good #41

fpawel opened this issue Feb 21, 2018 · 1 comment

Comments

@fpawel
Copy link

fpawel commented Feb 21, 2018

Warning in the browser console:

[Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.

gowut-v1.3.0.js:244 :

xhr.open("GET", _pathSessCheck, false); // synch call (else we can't catch connection error)

Maybe there is an option to make the call asynchronous to avoid problems with the browser hang when the connection is lost during a call?

@icza
Copy link
Owner

icza commented Feb 21, 2018

Making it asynchronous could cause more trouble, as client updates could happen out-of-order, and without "serialization" this could have side effects or errors. The library was not designed to synchronize concurrent client updates.

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

No branches or pull requests

2 participants