Skip to:
Content

BuddyPress.org

Opened 9 days ago

Last modified 9 days ago

#8340 assigned enhancement

Support native browser image lazy-loading

Reported by: r-a-y Owned by: r-a-y
Milestone: 7.0.0 Priority: normal
Severity: normal Version:
Component: Core Keywords:
Cc:

Description

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.

Change History (1)

#1 @espellcaste
9 days ago

I think that's a nice addition for 7.0!

Note: See TracTickets for help on using tickets.