JavaScript console.log causes error: “Synchronous XMLHttpRequest on the main thread is deprecated…”

后端 未结 21 2025
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-22 09:26

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

21条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-22 09:49

    In my case this was caused by the flexie script which was part of the "CDNJS Selections" app offered by Cloudflare.

    According to Cloudflare "This app is being deprecated in March 2015". I turned it off and the message disappeared instantly.

    You can access the apps by visiting https://www.cloudflare.com/a/cloudflare-apps/yourdomain.com

    NB: this is a copy of my answer on this thread Synchronous XMLHttpRequest warning and

提交回复
热议问题