Manual:$wgNativeImageLazyLoading/en

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:

No additional configuration needed.