lazyload.php
Loads the lazysizes <a href="https://github.com/aFarkas/lazysizes" rel="nooopener" target="_blank">lazysizes</a>) script for primarily image lazyloading for front and/or backend additionally as a fallback to the native browser lazy loading using loading="lazy".
The plugin attaches itself automatically to standard print* image template functions via filters and requires no theme changes. It also attaches to the general adminthumb functon used on the backend. It additionally adds a no-script fallback and supports native lazyloading in very modern browsers by adding the loading="lazy" if not existing.
Tags
Interfaces, Classes, Traits and Enums
- lazyload
- Filter HTML to add JS lazyloading using the script lazysizes