[Vuejs]-I am getting a warning which is making my page load lazy. "Added non-passive event listener to a scroll-blocking 'mousewheel' event."

0👍

It just means you are handling mousewheel events. If the handlers are doing something instead of the normal event, you can ignore the message. If you’re doing something in addition to the normal event, you should add the passive option to the listener so the default processing can happen without blocking.

https://developers.google.com/web/tools/lighthouse/audits/passive-event-listeners

In general, add the passive flag to every wheel, mousewheel,
touchstart, and touchmove event listener that does not call
preventDefault().

If it’s a package that is doing the event handling and not your own code, just ignore it.

Leave a comment