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

WordPress Trac noreply at wordpress.org
Thu Dec 19 14:36:55 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 mikeschroder):

 If I understand properly, the recent patches have moved from an approach
 of having this be something that a theme supports and opts into, to a
 default inclusion of the attribute set to `lazy`, for both existing and
 new images. Is this correct?

 If so, could you please walk me through the risks/safety of changing that
 expected behavior for existing images and themes?
 In particular -- I'm wondering why doesn't Chrome do this already, if it's
 safe, and what makes it different for WordPress, here.

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


More information about the wp-trac mailing list