Extension:Lazyload

Translate this page
MediaWiki extensions manual
Lazyload
Release status: unmaintained
Implementation Media
Description An extension to delay loading of images on MediaWiki pages.
Author(s) Mudkip metalk
Latest version 0.3.0 (2018-01-04)
MediaWiki 1.25+
License MIT License
Download
README
Hooks used
  • ThumbnailBeforeProduceHTML
  • LinkerMakeExternalImage
  • BeforePageDisplay

The Lazyload extension is an extension to delay loading of images on MediaWiki pages.

As of MediaWiki 1.34.0, lazy loading of images can be enabled in core through $wgNativeImageLazyLoading .

Installation

  • Download and place the file(s) in a directory called Lazyload in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'Lazyload' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.