I have been adding logs to the console to check the status of different variables without using the Firefox debugger.
However, in many places in which I add a console.log
in my main.js
file, I receive the following error instead of my lovely little handwritten messages to myself:
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help http://xhr.spec.whatwg.org/
What alternatives to or wrappers for console.log
can I add to my code use that will not cause this error?
Am I "doing it wrong"?
<script>$.ajaxPrefilter(function( options, originalOptions, jqXHR ) { options.async = true; });</script>
this will removes the warning. You can see here for same issue. – Burushaski