jQuery throttle / debounce allows you to rate-limit your functions in multiple useful ways.
jquerythrottledebounceratelimit
https://github.com/cowboy/jquery-throttle-debounce.git