gpt4 book ai didi

javascript - “Violation readystatechange handler took 760ms” 更新 Chrome 后

转载 作者:数据小太阳 更新时间:2023-10-29 04:23:59 24 4
gpt4 key购买 nike

更新后Google Chrome v57.0.2987 ,我们的网站在打开时出现错误 Collorbox :

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/.

[Violation] 'readystatechange' handler took 760ms
[Violation] Forced reflow while executing JavaScript took 51ms
[Violation] Forced reflow while executing JavaScript took 43ms
[Violation] Forced reflow while executing JavaScript took 38ms

这只是偶尔发生。当我们遇到这些错误时,Colorbox 对我们不起作用。

Google Chrome 是否存在错误?

编辑: Magento合并 JavaScript 导致错误。这是不对的地方。如果我不合并它们,那么我就不会收到这些错误并且它会正确加载。

VM23586:4 Uncaught TypeError: Cannot set property 'value' of null  at choose (eval at <anonymous> (0a9e2e3….js:11743), <anonymous>:4:73)  at HTMLImageElement.onclick (letto-moderno-imbottito-prisma.html:1)
Uncaught TypeError: Cannot read property 'close' of undefined at HTMLDivElement.onclick (letto-moderno-imbottito-prisma.html:1)

最佳答案

Chrome 只是说你的代码 is blocking the UI too much .

关于javascript - “Violation readystatechange handler took 760ms” 更新 Chrome 后,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43274361/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com