"runtime-dom.esm-bundler.js:279 [Violation] Added non-passive event listener to a scroll-blocking "touchstart" event. Consider marking event handler as "passive" to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952" 这个错误是指在使用addEventListener()添加了一个非被动的事件监听器到一个会阻塞滚动的'touchstart'事件上。建议将事件处理程序标记为'passive'以提高页面的响应性。关于该错误的更多信息可以参考https://www.chromestatus.com/feature/5745543795965952。

非被动事件监听器导致页面滚动卡顿 - 优化建议

原文地址: https://www.cveoy.top/t/topic/pzVU 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录