0
更新到最新的谷歌Chrome發佈時,我們在我們的網站打開顏色框,我們正在錯誤後:「侵犯readystatechange接過760ms」更新後,最新的Chrome
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之前工作,所以我猜它肯定是一個太重的colorbox請求? – LaurenFrida
AKA同步通話不好。 – epascarello
它似乎是一個重複:https://stackoverflow.com/questions/41218507/violation-long-running-javascript-task-took-xx-ms/41218580 – oklas