gowut icon indicating copy to clipboard operation
gowut copied to clipboard

Synchronous call of XMLHttpRequest is not good

Open fpawel opened this issue 8 years ago • 1 comments

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?

fpawel avatar Feb 21 '18 06:02 fpawel

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.

icza avatar Feb 21 '18 11:02 icza