• Resolved keyra

    (@keyra)


    Using
    – WP Slimstat Analytics 4.3.2.3
    – PHP 7.0.7
    – WordPress 4.5.2 (Multisite)

    I’m getting this message in Chrome’s console while I browse the site as a visitor:
    Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help, check https://xhr.spec.whatwg.org/. wp-slimstat.min.js:1

    https://ww.wp.xz.cn/plugins/wp-slimstat/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Jason Crouse

    (@coolmann)

    Hi,

    you can switch to Async tracking in the settings, to make that warning disappear. Slimstat uses synchronous communications with the server to make sure page views are tracked even on very slow servers. If your server is fast enough, then switching to async mode might be an option for you.

    Best,
    Jason

    Thread Starter keyra

    (@keyra)

    Thanks.

    I followed the recommendation regarding site speed and switched to that.

    I read a bit about the technicalities about the error and I see why the error is there.

    It’s either:
    – Render blocking if the site isn’t fast enough (in sync mode)
    – There are some potential stat loss (in async mode)

    Plugin Contributor Jason Crouse

    (@coolmann)

    That is correct.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Synchronous XMLHttpRequest deprecated’ is closed to new replies.