You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I perform a Google mobile friendly test on a website that uses ga-lite, I get the following error message:
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/
Here's an example of such a mobile friendliness report.
Back then ga-lite had functionality of sending the pageviews on window.onunload, and since Internet Explorer doesn't support navigator.sendBeacon, there was a fallback to use XMLHttpRequest. The gist here is that IE needed to use synchronous requests to guarantee taht those requests were finished on the unload event.
This means we can safely remove the synchronous flag from the XMLHttpRequest call.
If I perform a Google mobile friendly test on a website that uses
ga-lite
, I get the following error message:Here's an example of such a mobile friendliness report.
The problem looks to be caused by this line.
The text was updated successfully, but these errors were encountered: