Hi Rob, enjoyed reading. shouldn't you de-bounce the scroll events. If i remember correctly there are too many on each scroll. for optimization purposes.
Thanks Oren. Yes, you could optimize the code by debouncing. Maybe I will add this to the article. I wanted to focus on explaining how to implement this without going too far into more complex territory!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Rob, enjoyed reading. shouldn't you de-bounce the scroll events. If i remember correctly there are too many on each scroll. for optimization purposes.
I added a section about optimization if you are interested Oren!
Thanks Oren. Yes, you could optimize the code by debouncing. Maybe I will add this to the article. I wanted to focus on explaining how to implement this without going too far into more complex territory!