From https://github.com/wikimedia/mediawiki/pull/110
From b382b7958272ce89cc0cd168a5701835dd3b0a51 Mon Sep 17 00:00:00 2001 From: Ruben Barkow-Kuder <[email protected]> Date: Sun, 26 Apr 2020 07:52:45 +0200 Subject: [PATCH] Add lazy loading on Mediawiki powered-by icon This will not load the icon while it is offscreen, only when a user scrolls down, it is loaded --- includes/skins/Skin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/skins/Skin.php b/includes/skins/Skin.php index 0b4dc9a..8da2c34 100644 --- a/includes/skins/Skin.php +++ b/includes/skins/Skin.php @@ -910,7 +910,7 @@ abstract class Skin extends ContextSource { ); $text = '<a href="https://www.mediawiki.org/"><img src="' . $url1 . '" srcset="' . $url1_5 . ' 1.5x, ' . $url2 . ' 2x" ' - . 'height="31" width="88" alt="Powered by MediaWiki" /></a>'; + . 'height="31" width="88" alt="Powered by MediaWiki" loading="lazy" /></a>'; Hooks::run( 'SkinGetPoweredBy', [ &$text, $this ] ); return $text; } -- 2.20.1