关于javascript:更新至最新版本的Chrome后,“ Violation readystatechange处理程序耗时760ms”

“Violation readystatechange handler took 760ms” after update to latest Chrome

更新到最新版本的Google Chrome浏览器后,当我们在网站上打开colorbox时遇到错误:

1
2
3
4
5
6
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导致错误,它不能正常工作,如果我不合并它们,我不会得到这些错误,并且加载正确

1
2
3
 VM23586:4 Uncaught TypeError: Cannot set property 'value' of null  at choose (eval at  (0a9e2e3….js:11743), :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。