DEV Community

Discussion on: Make a reading progress bar for your blog 📊

Collapse
 
orenmizr profile image
Oren Mizrahi

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.

Collapse
 
robole profile image
Rob OLeary

I added a section about optimization if you are interested Oren!

Collapse
 
robole profile image
Rob OLeary • Edited

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!