Filter problem with sending too many requests

Filter problem with sending too many requests

lvasilevlvasilev Posts: 1Questions: 1Answers: 0

The filter has the following problematic behavior. When the user types in the filter box the following take place:

Key event(s) is/are registered for the filter input.
The callback that initiates the AJAX is instantly executed (always happens for first event).
The callback is always delayed after a pre-defined amount of time, such as 200ms (multiple events firing at once cause some chaos).
Subsequent key presses may or may not trigger the AJAX instantly (if you type really fast, you can avoid invoking the callback).

Currently, if you type a single character, the callback will be fired twice--once instantly and once delayed.
If you type multiple characters, you are guaranteed to have the callback fire twice like above but will likely have multiple other callback invocations in between.

Is this a known issue and if so, is there a fix for it?

Answers

Sign In or Register to comment.