[wp-trac] [WordPress Trac] #44427: Introduce lazy-loading API for media and other elements
WordPress Trac
noreply at wordpress.org
Tue Jul 21 18:22:48 UTC 2020
#44427: Introduce lazy-loading API for media and other elements
-------------------------------------------------+-------------------------
Reporter: mor10 | Owner: flixos90
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.5
Component: Media | Version: 5.4
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests 2nd- | Focuses:
opinion early needs-testing has-dev-note | performance
-------------------------------------------------+-------------------------
Comment (by johnjamesjacoby):
Just a bit of feedback about `wp_filter_content_tags` specifically...
It is the suggested replacement for `wp_make_content_images_responsive`,
but the new function name appears to not be image-specific. My
interpretation of the new function name is that it may, in the future, be
responsible for filtering ''all'' content tags.
bbPress uses `wp_make_content_images_responsive`, but I'm uncertain if
`wp_filter_content_tags` will be a suitable long-term replacement, because
community submitted content has different needs than Contributor-and-
higher content.
Subjectively, there was something nice about isolating image-specific
functionality previous to 5.5. If the intent is to add more tags to this
in the future, bbPress may need to fork this. If that is not the intent,
the new function name might be more ambiguous than intended.
I'm not fluent with the history or planning here, so I apologize if I'm
mistaken. ☮️
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44427#comment:114>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list