DEV Community

Discussion on: Debounce with vanilla JavaScript or RxJS

Collapse
mapiac profile image
Mapiac

Hey David, what are you thoughts on this implementation of throttle with rAF for scroll codepen.io/aFarkas/pen/LNeopm and more so these two quite passionate discussions on rAF as it pertains to vanillaJS?

github.com/google/WebFundamentals/...
github.com/google/WebFundamentals/...

Collapse
daviddalbusco profile image
David Dal Busco Author

Interesting approach, I would be curious to know how does it performs in a complex pages with rerendering an stuffs, really interesting 👍

About the discussions, I didn't used really rAF so I can't tell much as I'm not experienced with.

Collapse
canrau profile image
Can Rau

More on debounce using requestAnimationFrame by Chris Ferdinandi gomakethings.com/debouncing-your-j...

Just in case 😉

Thread Thread
daviddalbusco profile image
David Dal Busco Author

Coolio, thx for the interesting tips 👍.