DEV Community

Discussion on: Debouncing in Javascript.

Collapse
 
andregarvin profile image
andreGarvin

You should not use a delay but rather cancel the action if it is being called again. That js much more efficient that relaying on some delay that will handicap the UX of your application