[wp-trac] [WordPress Trac] #32035: Media views EmbedLink debounce

WordPress Trac noreply at wordpress.org
Fri May 8 19:12:37 UTC 2015

#32035: Media views EmbedLink debounce
 Reporter:  afercia       |       Owner:  wonderboymusic
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  4.3
Component:  Media         |     Version:  4.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  ui, javascript
Changes (by wonderboymusic):

 * keywords:   => has-patch
 * owner:   => wonderboymusic
 * status:  new => assigned
 * milestone:  Awaiting Review => 4.3


 `_.debounce` is correctly placed on the typing callback. The real issue is
 stampede of XHRs on `fetch()`. These aren't necessarily a problem, but the
 browser shouldn't try to handle all of them.

 If a `fetch()` is happening, and another one is triggered, the currently
 pending XHR should be aborted. You can't call `abort()` on `$.Deferred`,
 but you can on `$.ajax`, so we will use that instead of `wp.media.ajax`,
 which returns a deferred Promise.

Ticket URL: <https://core.trac.wordpress.org/ticket/32035#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list