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

WordPress Trac noreply at wordpress.org
Sun Nov 3 21:14:30 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:  has-patch has-unit-tests  |     Focuses:  performance
--------------------------------------+--------------------------

Comment (by swissspidy):

 Might make sense to add the filter to `render_block` in addition to
 `widget_text_content`.

 Also, the regex should be case insensitive

 > It also lazy-loads iframes with the loading attribute, in addition to
 images.

 Would be nice to add this attribute to `get_post_embed_html()` and
 whitelist the attribute accordingly in the oEmbed handler.

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


More information about the wp-trac mailing list