loading...

re: Pimp your Blog: Make a Reading Progress Bar 💅🎩 VIEW POST

FULL DISCUSSION
 

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!

code of conduct - report abuse