The article and especially the code in "Debounce your scroll handlers" has some issues and can be improved a lot. It has to be said, that there are many different use cases to listen for scroll/resize ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results