Skip to content

backdrop-contrib/lazyload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lazy Load

This module improves image loading performance by delaying the loading of images outside the viewport and by temporarily showing lightweight versions of large images while they are being fetched. This speeds up the initial page rendering.

It is particularly useful for websites with heavy visual content, such as photography or art galleries. Faster rendering enhances user experience and may also contribute to better search engine ranking.

Features

  • Defers image loading until they appear in the visible part of the browser window (lazy loading).
  • Displays a smaller version of an image until the full-size version has finished loading.
  • Allows restricting the module’s behavior to specific pages.
  • Allows restricting the module’s behavior to images above a minimum size.
  • Optionally can show a blank image instead of a small preview image.

Known issues

  • Does not apply to background images (not using the img tag), such as those in a hero block.
  • Works only with images located in default file directories as defined in Administration > Structure > File types > File settings. For example, it will not apply to images from /core or /themes.
  • In rare cases, when image field does not have width and height properties, the module will skip such an image.

Installation

Issues

Bugs and Feature Requests should be reported in the Issue Queue: https://github.com/backdrop-contrib/mymodule/issues.

Current Maintainers

  • Pavel
  • Additional maintainers are welcome.

Credits

License

This project is GPL v2 software. See the LICENSE.txt file in this directory for complete text.

About

Optimizes image loading on a website powered by Backdrop CMS.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published