本文介绍了“违规readystatechange处理程序花费了760ms”在更新到最新的Chrome之后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在更新到最新的Google Chrome版本后,我们在我们的网站上打开colorbox时发生错误:
After updating to the latest Google Chrome release we are getting errors when we open colorbox on our website:
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 isn没有正常工作,Google Chrome上可能存在一个错误?
This only happens sometimes and when we get those errors colorbox isn't working properly, is there maybe a bug on Google Chrome?
编辑:Magento合并javascript会导致错误,如果我不合并他们我没有得到这些错误,它正确加载
edit: Magento merging javascript is causing the error, it's not working right, if I don't merge them I don't get these errors and it's loading correctly
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只是说你的代码:
Chrome is just saying that your code is blocking the UI too much:
这篇关于“违规readystatechange处理程序花费了760ms”在更新到最新的Chrome之后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!