Throttle the given function to be only executed once per animation frame.
The original function.
The throttled function.
Throttle the given function to be only executed once per animation frame.