Kézikönyv:$wgNativeImageLazyLoading

From mediawiki.org
This page is a translated version of the page Manual:$wgNativeImageLazyLoading and the translation is 38% complete.
Files and file uploads: $wgNativeImageLazyLoading
Beállításával a „loading” attribútumon keresztül a képek csak szükség esetén töltődnek be.
Bevezetve:1.34.0 (Gerrit change 531442; git #3b7eecf)
Eltávolítva:használatban
Megengedett értékek:(boolean)
Alapértelmezett érték:false

Details

If set to true, enables native MediaWiki LazyLoading for all images on site. LazyLoading technology allows images to load gradually as an user scrolls the page, reducing server load.

To activate it, you just need to add in your Localsettings.php the following code:

$wgNativeImageLazyLoading = true;

No additional configuration needed.