Synchronous Xmlhttprequest On The Main Thread Is Deprecated... Tried Many Different Solution
I know this question was posted so many times in here, but I tried all the solutions I could find on stack overflow and none of them worked. I'm just trying to make a simple ajax q
Solution 1:
You should use local jquery then from cdn
and also
To avoid this warning, do not use:
async: false
in any of your $.ajax()
calls. This is the only feature of XMLHttpRequest
that's deprecated.
The default is async: true
, so if you never use this option at all, your code should be safe if the feature is ever really removed (it probably won't be -- it may be removed from the standards, but I'll bet browsers will continue to support it for many years).
Solution 2:
I also notice the same problem when using the .load() function.
The method seems not deprecated by jquery but it causes Synchronous XMLHttpRequest alert too.
Prefer $.get(), $.post(), or $.ajax() methods instead.
Post a Comment for "Synchronous Xmlhttprequest On The Main Thread Is Deprecated... Tried Many Different Solution"