Page MenuHomePhabricator

Enable native lazy loading on avatars
Closed, ResolvedPublic

Description

Starting MediaWiki 1.34 there is a config variable to enable native lazy loading: https://www.mediawiki.org/wiki/Manual:$wgNativeImageLazyLoading

Native lazy loading is handled by browsers, the only thing to do is adding the attribute: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-loading

User avatars are images most commonly used with SocialProfile, and we can have a significant amount of them (especially if you use the Comments extension). I think it's great to enable lazy loading on avatars when wiki is configured to use it.

Event Timeline

Change 666727 had a related patch set uploaded (by Kam193; owner: Kam193):
[mediawiki/extensions/SocialProfile@master] Allow loading avatrs in a natize lazy way

https://gerrit.wikimedia.org/r/666727

Change 666727 merged by jenkins-bot:
[mediawiki/extensions/SocialProfile@master] Allow loading avatrs in a natize lazy way

https://gerrit.wikimedia.org/r/666727

ashley assigned this task to Kam193.