Make WordPress Core

Opened 16 months ago

Last modified 14 months ago

#39181 new defect (bug)

Need Debounce in Plugin Search field

Reported by: LogixTree Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.5
Component: Plugins Keywords: reporter-feedback
Focuses: javascript Cc:


Whenever, I try to search for plugin. I doesn't not wait for me to complete the typing. It just start searching whether it's one letter or complete word. A debounce timer is need at this point. Whenever a user starts typing, it will wait for 500ms seconds pause to create a search. It would reduce the ajax requests too.

Change History (3)

#1 @adamsilverstein
16 months ago

  • Component changed from General to Plugins
  • Focuses javascript added
  • Keywords needs-patch added
  • Type changed from enhancement to defect (bug)
  • Version changed from 4.7 to 4.5

#2 @adamsilverstein
16 months ago

  • Keywords reporter-feedback added; needs-patch removed

Hi @LogixTree, thanks for the bug report. I was unable to reproduce the issue you described, my search seems to be debounced and I only see the ajax request fire after I pause for a brief period. I tested in trunk on both the 'Plugins' and 'Add Plugins' screen. Here is a screencast showing the session you can see the network requests at the end of each keying sequence.

Where are you seeing the plugin search on every keypress?

#3 @adamsilverstein
14 months ago

@LogixTree can you give some more details here? where are you searching that isn't debounced? I think this is already fixed?

Note: See TracTickets for help on using tickets.