Use passive event listener
Author: idoshamunCreated Sep 4, 2016Updated Feb 1, 2021
In order to boost scrolling performance, one can use passive event listeners. The only limitation is that the handler can't call preventDefault.
Just add { passive: true } as third argument to addEventListener.
I hope to create a PR soon
Reference: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener
Source: imakewebthings/waypoints