{{lazyload}} helper
Generate loading attribute with a specific value. Can be used with images and iframes to optimize page loading speed.
{{lazyload "VALUE"}}
Currently available values:
lazy
- it will lead to load images during page scrollingeager
- it will prioritize loading of a specific imageauto
- it will allow browser to decide about priority of loading a specific image
Example:
{{lazyload "lazy"}}
With this helper you can handle lazy loading settings:
{{lazyload @config.custom.lazyLoad}}
Read more how lazy load works in Publii.