Closed dpmango closed 6 years ago
The best way to do this is to pass a debounced or throttled function into the scrollmonitor. Lodash and underscore both have great implementations of this.
If you have a situation where the scrollmonitor itself, not the callbacks applied to it, are causing a performance issue please send me some sample code.
I found scrollMonitor hitting performance of webpage and decrease FPS.
Are there any way to set throttle on enterViewport/exitViewport events ?