오류는 아닌데 f12에 이문구가 나오는이유는 무엇일까요?
본문
[Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
오류는 아닌데 f12에 이문구가 나오는이유는 무엇일까요?
답변 3
구글에서 웹페이지의 속도저하의 원인으로 document.write()를 지목했습니다.
크롬이 버전업되면서
document.write()를 사용하는것 Javascript들에 대해서
violation 경고를 알려주는 사항입니다.
당장의 소스를 다 수정해서 재코딩하는것이라서
각각의 상황을 한번에 해결방법은 없습니다.
향후 개선사항을 적용하면서 조율해야겠죠
I was having the same issue. It turned out to be the Chrome Extension 'Logitech Smooth Scrolling'. When I turned it off, I no longer saw the violations in my Angular 6 Material app.
아래 페이지 참고하시면 될것 같습니다.
https://github.com/angular/material2/issues/4221
감사합니다
답변을 작성하시기 전에 로그인 해주세요.