Please note they say "debounce" your scroll handlers but they demonstrate a requestAnimationFrame based solution.
Do not confuse this with _.debounce().
In the context lodash/underscore I believe the correct approach is _.throttle the 'scroll', and _.debounce the 'resize' handlers.