While typing in the search box, the ajax suggestion/search function gets fired a lot.
Own example:
Searching for a product by typing 2 words resulted in 22 requests to the following endpoint:
action=inlinesss&post_type=&searchstring=….
severely impacting the servers resources.
Possible suggestions for options:
– Add delay to await and evaluate if user stopped typing before searching
– Limit searches to A: When user stopped typing, and/or B: When a space is entered while typing (so we still get results while typing)