0
I have a $http.get request in my application as seen on Angularjs ng-repeat does not return data, always returns empty
However I am receiving a Warning in the browser console with the following message:
Synchronous XMLHttpRequest on the main thread is deprecated
because of its detrimental effects to the end user's experience.
How can I solve?
What code causes this Warning? This is being displayed by Chrome recently when you try to run the method
open
of an Xmlhttprequest with the third parameter asfalse
, which prevents the request from being asynchronous.– Guilherme Nagatomo
Guilhermenagatomo, here is my code: http://answall.com/questions/57324/angularjs-ng-repeat-n%C3%A3o-returns-data-returns-always-empty. And yes, it’s being displayed on Crhome the moment you access the view that accesses the data
– Jacson Daner M. Brandão
Which version of Angular you’re using?
– Guilherme Nagatomo
version 1.3.14 CDN Google
– Jacson Daner M. Brandão
Looking fast through the source of the Angular, it doesn’t seem that the problem is in it. Is there any other code that uses ajax outside the Angular? Warning does not indicate in the console the line where it is activated?
– Guilherme Nagatomo
Does not indicate anything, just the message and makes a reference to jquery. Is it some incompatibility?
– Jacson Daner M. Brandão
@Jacsondanerm.Brandão Add to your question the relevant areas of your code and. This Warning is usually caused by jQuery, so add here also the relevant areas of your code that make use of it.
– Vinícius Gobbo A. de Oliveira