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

WordPress Trac noreply at wordpress.org
Thu Jan 9 19:28:43 UTC 2020


#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 2nd-        |     Focuses:
  opinion                                        |  performance
-------------------------------------------------+-------------------------

Comment (by azaozz):

 Replying to [comment:76 westonruter]:
 > What if we restrict adding adding `loading=lazy` by default to just
 images that are being loaded from the install's `uploads` directory?

 Ha, we posted a replay at almost the same time :)

 Yes, thinking this would be a good way to prevent eventual edge cases. If
 we end up making a feature plugin, perhaps this should be an option in it?

 On the other hand it seems that lazy-loading is "safe" in the great
 majority of the cases. Having a way to opt-out, perhaps by adding
 `importance="high"` seems like a good way to turn it off?

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


More information about the wp-trac mailing list