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
const tfn = throttle(100, fn)
tfn(); // fn();
// 99 ms later
tfn(); // setTimeout(fn, 100)
In this case the functions are executed 199ms apart while ideally you would want 100ms. I see that lodash/underscore versions of throttle are a little more intelligent about the delay provided to setTimeout.
The text was updated successfully, but these errors were encountered:
See conversation in #6
In this case the functions are executed 199ms apart while ideally you would want 100ms. I see that lodash/underscore versions of throttle are a little more intelligent about the delay provided to
setTimeout
.The text was updated successfully, but these errors were encountered: