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

WordPress Trac noreply at wordpress.org
Wed Feb 15 17:28:56 UTC 2017


#38911: Prevent Media Library search making an AJAX request for each char typed.
-------------------------+-------------------------------------------------
 Reporter:               |       Owner:  adamsilverstein
  brandomeniconi         |      Status:  closed
     Type:  enhancement  |   Milestone:  4.8
 Priority:  normal       |     Version:  4.6.1
Component:  Media        |  Resolution:  fixed
 Severity:  normal       |     Focuses:  javascript, administration,
 Keywords:  has-patch    |  performance
  commit                 |
-------------------------+-------------------------------------------------
Changes (by adamsilverstein):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"40060"]:
 {{{
 #!CommitTicketReference repository="" revision="40060"
 Media: debounce the media grid search, avoiding duplicate requests.

 Add a debounce wrapper to the media grid search handler. The search
 callback is now fired after a 300 ms typing pause.

 Remove redundant handlers for 'search' and 'change', preventing
 multiple/duplicate search callbacks.

 Props certainstrings, joemcgill, Kelderic, batmoo.
 Fixes #38911.
 }}}

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


More information about the wp-trac mailing list