> ## Content Index
> Fetch the complete content index at: https://getpublii.com/dev/llms.txt
> Use this file to discover other available public pages before exploring further.

# {{lazyload}} helper

- URL: https://getpublii.com/dev/lazyload-helper/
- Published: 2020-11-21T09:53:22.387Z
- Updated: 2020-11-21T11:01:54.522Z
- Description: {{lazyload}} helper helps you to improve page loading speed of your static websites built with Publii. You can use it with images and iframes.
- Author: Tomasz Dziuda
- Tags: Helpers

Generate loading attribute with a specific value. Can be used with images and iframes to optimize page loading speed.

```json
{{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:

```json
{{lazyload "lazy"}}
```

With this helper you can handle lazy loading settings:

```json
{{lazyload @config.custom.lazyLoad}}
```

Read more how [lazy load](https://getpublii.com/dev/how-images-work-in-publii/#lazy-load) works in Publii.
