Download

{{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 scrolling
  • eager - it will prioritize loading of a specific image
  • auto - 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.

What are you waiting for?

Start building your site today.

  1. 1 Download Publii
  2. 2 Write your content
  3. 3 Publish your site
Create website