Ben Alman » jQuery throttle / debounce: Sometimes, less is more! - 0 views
-
Jacques Bosch on 10 Jun 11"jQuery throttle / debounce allows you to rate-limit your functions in multiple useful ways. Passing a delay and callback to $.throttle returns a new function that will execute no more than once every delay milliseconds. Passing a delay and callback to $.debounce returns a new function that will execute only once, coalescing multiple sequential calls into a single execution at either the very beginning or end."