[wp-trac] [WordPress Trac] #44427: Introduce lazy-loading API for media and other elements

WordPress Trac noreply at wordpress.org
Sun Nov 3 19:20:44 UTC 2019


#44427: Introduce lazy-loading API for media and other elements
----------------------------------------+--------------------------
 Reporter:  mor10                       |       Owner:  flixos90
     Type:  feature request             |      Status:  assigned
 Priority:  normal                      |   Milestone:  5.4
Component:  Media                       |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  needs-unit-tests has-patch  |     Focuses:  performance
----------------------------------------+--------------------------

Comment (by flixos90):

 @westonruter
 > What about also adding it to `widget_text_content`, `the_excerpt`,
 `the_post_thumbnail_caption`, `comment_text` among some others perhaps?

 Some of those might make sense, but probably not all. I'd lean towards
 doing it for `widget_text_content` possibly, but the others typically
 don't include images I'd say?

 > Also, I believe `wp_lazy_load_content_media` should be run after
 `convert_smilies` which runs at priority 20 (at least for `the_content`).

 Can you clarify how these two filter functions are related? The existing
 function `wp_make_content_images_responsive()` which also makes media
 element replacements also runs at the default priority 10.

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


More information about the wp-trac mailing list