I have a button on a page, that I want to be fired maximum once every second. Meaning that if the user click on it like a madman for five second, it will only be executed five times. I’ve been googling and searching Stack, with no results. Also tried Alman’s throttle/debounce plugin, but doesn’t seem to work on clicks.
Share
use a timer