3 ms·
This is pretty common and it's easy to do. It was popularized first by Google search decades ago, then by Facebook search. How do you think they make suggestion
by grumple 4y ago
This is pretty common and it's easy to do. It was popularized first by Google search decades ago, then by Facebook search. How do you think they make suggestions as you are typing?
Responsiveness creates a better user experience.
In our use cases we are using this primarily in search fields. In a few places we do queries onblur. The cost of these queries is trivial, directly hitting indexed db columns. I don't think we have any db inserts triggered from this behavior, and we don't log request params as a general rule (except rarely for short term debugging or non-sensitive performance tracking).
- JKCalhoun 4y agoIt's wrong to do it on posts though. I have often responded to a comment with a rather heated reply before thinking better of it and hitting the Cancel button. I guess I like to vent but would rather my "venting" not end up in some site's DB.
- grumple 4y agoTotally get it, and it is a problem. I don't like it, and I also don't like clipboard access. Browsers could have a mode that prevents this, similar to how certain features don't work unless a user has interacted with the page (like playing sound). Something like no queries when an input field contains data unless the user submits a form via a click or enter.