[wp-trac] [WordPress Trac] #25748: Long (confusing) delay when sending many images to editor with "insert into post" button
WordPress Trac
noreply at wordpress.org
Sat May 24 07:07:29 UTC 2014
#25748: Long (confusing) delay when sending many images to editor with "insert into
post" button
-----------------------------+------------------------------
Reporter: matthewdietsche | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 3.7
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: performance
-----------------------------+------------------------------
Changes (by ericlewis):
* keywords: => needs-patch
* focuses: => performance
Comment:
You're right, an [https://core.trac.wordpress.org/browser/tags/3.9.1/src
/wp-includes/js/media-editor.js#L935 ajax call is made for every
attachment that is being "sent" to the editor]. This is to build the html
markup for the attachment, which gets filtered applied
(`image_send_to_editor`, `media_send_to_editor`).
We could make a batch resource and make one request rather than multiple
requests.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/25748#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list