I just wrote something about this. A general purpose throttle function can be useful for a lot of things, like making a bunch of ajax requests. However, the problem with a lot throttle functions is that they don't fire the callback at the end of the throttling phase, which can result in the last call being skipped. That can be really bad for like a resize.    In general, using requestAnimationFrame to throttle repeating events like resize, scroll, wheel, keydown, mousemouve, touchmove,
    • Like