bennothommo / oc-lazyload-plugin
Lazy load images by default in October CMS
Installs: 84
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 2
Open Issues: 0
Type:october-plugin
Requires
- php: >=7.0.8
- ivopetkov/html5-dom-document-php: ^2.2.7
This package is auto-updated.
Last update: 2022-03-14 14:41:09 UTC
README
Please note that this repository is no longer being maintained.
Due to a disagreement with the founders of October CMS, I will no longer be providing updates for the October CMS version of this plugin. I will keep the repository available for people to use, but will only be updating the Winter CMS version of this plugin.
Lazy Loading plugin
Makes October CMS pages lazy-load images by default. This uses the loading="lazy"
attribute that is available as part
of the HTML Living Standard and
is available in all modern browsers, except Safari, since early 2020.
To prevent layout shifting, this attribute is only added automatically to images that have a defined width
and
height
attribute. It will also ignore any images that have specified their own loading
attribute as well, allowing
developers to control the loading
attribute as necessary.
A new setting is made available to the Pages form, Lazy load images, which allows developers to disable lazy loading on a per-page basis.