[buddypress-trac] [BuddyPress Trac] #8340: Support native browser image lazy-loading

buddypress-trac noreply at wordpress.org
Tue Jul 28 23:50:34 UTC 2020


#8340: Support native browser image lazy-loading
-------------------------+----------------------
 Reporter:  r-a-y        |      Owner:  r-a-y
     Type:  enhancement  |     Status:  assigned
 Priority:  normal       |  Milestone:  7.0.0
Component:  Core         |    Version:
 Severity:  normal       |   Keywords:
-------------------------+----------------------
 Let's add `<img loading="lazy"> support for any place we output the
 `<img>` tag.

 This is mainly for avatars, but could potentially include injecting the
 `loading` attribute for images in activity stream content.

 The `loading` attribute is supported in most modern browsers:
 https://caniuse.com/#feat=loading-lazy-attr

 Safari also supports it, but has to be enabled via an experimental flag.

 Should be quite easy to put a patch together. I'll work on this for 7.0.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8340>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list