November 30, 2021, 12:28:38 AM

News:

Wondering if this will always be free?  See why free is better.


Additional Info
Type
Package ID
alexetgus:Lazyload
First Created
April 22, 2020, 09:39:42 AM
Last Updated
February 18, 2021, 01:59:45 PM

Lazyload v1.1

Lazyload (lazyloading) - Lazy loading for images displayed in SMF messages
Compatible With 2.0.17, 2.0.18
Latest version v1.1
Downloads 362
Reviews 0
Rating 0/5
Subscribers 1
License (View License)
Author(s)
Lazyload

Lazy loading (Lazyloading) for images displayed in SMF messages.
This mod is compatible responsive design.



Description:


* Updating for SMF 2.0.18 - V1.1 (18/02/2021)


This modification (for SMF 2.0.x only) adds a feature allowing posts images to be loaded only when they are needed.
If an image is not in the display window, it is not loaded.
The display of a page thus becomes faster.

This feature is essential for mobile phones that are charged by the amount of data they consume.



Information for coders:

If you want to add images lazyloading to your forum directly into the PHP code, load the javascript ./Themes/default/scripts/lazysizes.min.js, if you haven't already done so, and display your image like this:
<img data-src="my-image.png" class="lazyload" />


For more information on the JavaScript used, please visit the project's Github repository :
https://github.com/aFarkas/lazysizes


https://chez-oim.org  -  This mod is copylefted
To contribute : https://github.com/alexetgus/lazyload
lazyload-1.0.zip
17.51 KB
lazyload-1.1.zip
17.51 KB
Manual installation info
You have to register or login to be able to leave a review
There are currently no reviews on this customization
Advertisement: