Like many others, my website is using jquery. When I open the developer tools, I see a warning so says that XMLHttpRequest is
Deprecated because of it detrimental effects to the end of the user ' s experience.
I went on and read part of the documentation, but it is fairly technical. Can someone explain the consequences of shifting from XMLHttpRequest to WHATWG in simple terms? It says it happened in 2012. Also, the documentation says that synchronous xmlhttprequest outside of workers was in the process of being removed from th E Web platform, when this happens, if a user agent had them in a service, does they need to modify their existing code?
To avoid this warning, does not use:
async: false
In any of your $.ajax()
calls. This was the only feature of that XMLHttpRequest
' s deprecated.
async: true
The default is, so if you never use this option at all, your code should are safe if the feature is ever really Remov Ed (It probably won ' t be--it is removed from the standards, but I'll bet browsers would continue to support it for MA NY years).
This is JQuery's warning then. I can ignore it? I don ' t use synchronous calls to the server. The perfectionist side of me doesn ' t like have warnings at all. –jordan at 19:48 |
|
@Jordan I think the warning is coming from the browser, not jQuery. It'll happen whenever you try to use synchronous AJAX. If you use JQuery, then that would only happen if you specify this option to $.ajax . –barmar in21:47 |
jquery has deprecated synchronous XMLHttpRequest