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

WordPress Trac noreply at wordpress.org
Thu Dec 8 17:22:23 UTC 2016


#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 joemcgill):

 > I also found some spots where we used 250 (widgets) and 1000 (media
 grid).

 This does not surprise me. There's a bit of a balance to be had here. A
 shorter time (e.g, 250) would most likely lead to extra requests when
 people type slower, and a longer time leads to a perception of slowness
 between typing and experiencing the response.

 This reminds me of when mobile browsers use to put a 300ms delay on all
 touch events to see if the user was going to double click. Browsers
 [https://developers.google.com/web/updates/2013/12/300ms-tap-delay-gone-
 away eventually removed the delay] because people could detect the delay.
 Not saying this is exactly the same case as click response, but I would
 lean towards making the UX feel a bit snappier even at the cost of a few
 additional requests, since [https://www.nngroup.com/articles/response-
 times-3-important-limits/ some research shows] that people can sense any
 delay over 100ms.

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


More information about the wp-trac mailing list