更新 Chrome 后“违反 ReadyStateChange 处理程序花费了 760 毫秒”

2024-04-13

更新后谷歌浏览器 v57.0.2987 https://en.wikipedia.org/wiki/Google_Chrome_version_history, 我们的网站在打开时出现错误彩色盒 https://www.jacklmoore.com/colorbox/:

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 可能存在错误吗?

Edit: Magento https://magento.com/合并 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 只是说你的代码过多遮挡 UI https://twitter.com/malyw/status/800421380902645760.

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

更新 Chrome 后“违反 ReadyStateChange 处理程序花费了 760 毫秒” 的相关文章

随机推荐