gowut
gowut copied to clipboard
Synchronous call of XMLHttpRequest is not good
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?
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.