Wrong throttling implementation
mareksuscak opened this issue · 1 comments
mareksuscak commented
Update throttling is implemented incorrectly on this line. It not only doesn't throttle the provided function at all (in fact a result of calling _spy
is passed into throttle). It also creates a new function every time a scroll event is fired. This results in a huge performance hit and increased memory usage due to the number of allocations.
mareksuscak commented
Submitted a PR:
#128