[wp-trac] [WordPress Trac] #27496: Improve loading of the various media components
WordPress Trac
noreply at wordpress.org
Sun Mar 23 22:50:26 UTC 2014
#27496: Improve loading of the various media components
-------------------------+--------------------
Reporter: azaozz | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.9
Component: Media | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------+--------------------
Changes (by azaozz):
* type: defect (bug) => enhancement
Comment:
Yeah, agreed. One way would be to pass context to `wp_enqueue_media()`.
Perhaps better would be to add some correlation between WP_Editor and
enqueueing media. Not sure how low-impact any of these would be.
Currently the logic is: load everything everywhere. Part of this is in
`wp_enqueue_media()` and another part in script-loader. Perhaps for 3.9 we
can add `mce-view` as dependency for `media-views`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27496#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list