Using
underscore.js
|
lodash.js
1 event every 100 ms
2 events every 300 ms
Move your mouse here
Mousemove Events:
Debounce Inmediate: _.debounce(fn, 200, true);
Debounce Inmediate: $.debounce(200, true, fn);
Debounce: _.debounce(fn, 200);
Debounce: $.debounce(200, false, fn);
Throttle with trailing: _.throttle(fn, 200);
Throttle with trailing: $.throttle(200, false, fn);
Throttle: $.throttle(200, true, fn);