TIP LazyLoadPlugin is not installed on Foswiki.org.


Deferred loading of images

This plugin allows to defer loading of images within a section of a page.

Modern browsers are all able to load images in a lazy way by themselves, except Internet Explorer 11 and below. For these there is a JavaScript based solution to retrofit this feature.



images go in here


Installation Instructions

You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server.

Open configure, and open the "Extensions" section. "Extensions Operation and Maintenance" Tab -> "Install, Update or Remove extensions" Tab. Click the "Search for Extensions" button. Enter part of the extension name or description and press search. Select the desired extension(s) and click install. If an extension is already installed, it will not show up in the search results.

You can also install from the shell by running the extension installer as the web server user: (Be sure to run as the webserver user, not as root!)
cd /path/to/foswiki
perl tools/extension_installer <NameOfExtension> install

If you have any problems, or if the extension isn't available in configure, then you can still install manually from the command-line. See https://foswiki.org/Support/ManuallyInstallingExtensions for more help.



Change History

26 Oct 2020: rewrite to use native lazy loading when available and otherwise use a JavaScript solution
28 May 2018: don't return false in static context
27 May 2016: upgraded to lazyload 1.9.7; disable itself in static content such as print-outs
28 Aug 2014: upgraded to lazyload 1.9.3
14 Mar 2013: upgraded to lazyload 1.8.2
10 Mar 2012: upgraded to latest version of lazyload 1.7.2
30 Sep 2011: fixed dependency on jquery.metadata
Topic revision: r10 - 26 Oct 2020, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy