Replies: 1 comment 4 replies
-
Just ignore it. Some events are required to be "not passive" |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Testing the performance of any sites that use Swiper, Lighthouse returns always this error:
Does not use passive listeners to improve scrolling performance
It refers to the code below:
for (var i = 0; i < this.length; i += 1) { var el = this$1[i]; if (!targetSelector) { for (j = 0; j < events.length; j += 1) { var event = events[j]; if (!el.dom7Listeners) { el.dom7Listeners = {}; } if (!el.dom7Listeners[event]) { el.dom7Listeners[event] = []; } el.dom7Listeners[event].push({ listener: listener, proxyListener: handleEvent }); el.addEventListener(event, handleEvent, capture); } }
I can't find any workaround. Am I doing something wrong? My passiveListener option it's setted to true.
Beta Was this translation helpful? Give feedback.
All reactions