Alberto Cerqueira
Alberto Cerqueira

Reputation: 1419

XMLHttpRequest on the main thread is deprecated

What meaning of this message:

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/.

You may have a new message that will block any feature of my site?

Thanks

Upvotes: 2

Views: 1099

Answers (2)

Joshua K
Joshua K

Reputation: 2537

If you use a synchronous ajax request on the main thread it will block your application / webpage until the response is received.

You should use asynchronous requests with callbacks or use Worker-Threads to load the data with XMLHttpRequest. Normally the first solution is the prefered way.

Upvotes: 0

MuriloDAG
MuriloDAG

Reputation: 31

Apparently this message is displayed when using a synchronous AJAX request. Synchronous XMLHttpRequest on the main thread is deprecated

Upvotes: 0

Related Questions