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!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.