[wp-trac] [WordPress Trac] #38911: Prevent Media Library search making an AJAX request for each char typed.

WordPress Trac noreply at wordpress.org
Fri Jan 6 01:41:20 UTC 2017


#38911: Prevent Media Library search making an AJAX request for each char typed.
-------------------------+-------------------------------------------------
 Reporter:               |       Owner:  adamsilverstein
  brandomeniconi         |      Status:  assigned
     Type:  enhancement  |   Milestone:  Awaiting Review
 Priority:  normal       |     Version:  4.6.1
Component:  Media        |  Resolution:
 Severity:  normal       |     Focuses:  javascript, administration,
 Keywords:  has-patch    |  performance
-------------------------+-------------------------------------------------

Comment (by aidanlane):

 Replying to [comment:10 adamsilverstein]:
 > @aidanlane thanks for testing. the 1000 ms delay is in the code that
 sets up the media grid (media-grid.js:L667 in `bindSearchHandler`), I will
 test to see where that is used.

 On closer inspection, it looks like `bindSearchHandler` is doing the right
 thing for us after all, with 1000ms debouncing. Looks like we just need to
 improve our search speed (which is currently slow due to a rubbish media
 categories plugin).

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38911#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list