Manual:$wgNativeImageLazyLoading/de-formal

From Linux Web Expert

Revision as of 04:24, 30 August 2023 by imported>FuzzyBot (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<translate> Files and file uploads</translate>: $wgNativeImageLazyLoading
Toggles native image lazy loading, via the "loading" attribute.
<translate> Introduced in version:</translate>1.34.0 (Gerrit change 531442; git #3b7eecf)
<translate> Removed in version:</translate><translate> still in use</translate>
<translate> Allowed values:</translate>(boolean)
<translate> Default value:</translate>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.