Jump to content

Kézikönyv:$wgNativeImageLazyLoading

From mediawiki.org
This page is a translated version of the page Manual:$wgNativeImageLazyLoading and the translation is 25% complete.
Outdated translations are marked like this.
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, this configuration parameter enables native MediaWiki lazy loading for all images on the site. Lazy loading allows images to load gradually as a user scrolls the page, thus reducing server load.

To activate it, you need to add the following code to your LocalSettings.php file:

$wgNativeImageLazyLoading = true;

No prerequisites or additional configuration are needed.