Why has this message suddenly started to appear in the Firefox console?
I'm using JQuery 1.7.1.
What in my app could I be doing that has caused this message to start appearing?
The solution to the above problem is to set async setting of the jQuery AJAX function to true as AJAX itself means Asynchronous JavaScript and XML and hence if you make it Synchronous by setting async setting to false, it will no longer be an AJAX call.
Synchronous XHR is now in deprecation state. The recommendation is that developers move away from the synchronous API and instead use asynchronous requests.
ajax() is deprecated.
Using jQuery to append a script tag to the document will cause it to load the script with async:false and trigger this warning.
As in:
var script = $("<script></script>"); script.attr("src", player.basepath + "whatever.js"); $(document.body).append(script);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With