You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[wait=0] (number): The number of milliseconds to throttle invocations to.
[options={}] (Object): The options object.
[options.leading=true] (boolean): Specify invoking on the leading edge of the timeout.
[options.trailing=true] (boolean): Specify invoking on the trailing edge of the timeout.
Returns
(Function): Returns the new throttled function.
Example
// Avoid excessively updating the position while scrolling.jQuery(window).on('scroll',throttle(updatePosition,100));// Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.varthrottled=throttle(renewToken,300000,{'trailing': false});jQuery(element).on('click',throttled);// Cancel the trailing throttled invocation.jQuery(window).on('popstate',throttled.cancel);
The text was updated successfully, but these errors were encountered:
throttle(func, [wait=0], [options={}])
Arguments
Returns
Example
The text was updated successfully, but these errors were encountered: