4 ms·
I like the 500ms timeout as a quick solution. Of course, a common source of duplicate form submissions is when then submission request is taking long (>1000ms)
by danneu 12y ago
I like the 500ms timeout as a quick solution.
Of course, a common source of duplicate form submissions is when then submission request is taking long (>1000ms) and the user gives the button another click in a little while.
- atomwaffel 12y agoI know, and you could set the timeout higher to prevent these (the button becomes a placebo button that's still clickable but doesn't do anything), but it gets hard to draw a line at which the request really might have failed and the button should be re-enabled. I feel like this is a different problem that needs to be addressed server-side, both with quicker response times and single-use tokens.