7 ms·
Any time you're performing an operation on a scroll event, that is a risk. But this uses a single "scroll" event listener throttled to fire a maximum of every 1
by Heqx 10y ago
Any time you're performing an operation on a scroll event, that is a risk. But this uses a single "scroll" event listener throttled to fire a maximum of every 100ms.
https://github.com/camwiegert/in-view/blob/master/src/in-view.js#L41 https://github.com/camwiegert/in-view/blob/master/src/in-vie...