| Rule ID | images/offscreen-lazy |
| Category | Images |
| Scope | Per-page |
| Severity | warning |
| Weight | 5/10 |
Solution
Add loading=‘lazy’ to images below the fold to defer loading until needed. This reduces initial page load time and saves bandwidth. Exception: Don’t lazy-load LCP image or above-the-fold content. Use loading=‘eager’ for critical images.Options
This rule supports the following configuration options:| Option | Type | Default | Description |
|---|---|---|---|
above_fold_count | unknown | undefined | Number of images considered above the fold |
Configuration Example
squirrel.toml
Enable / Disable
Disable this rule
squirrel.toml
Disable all Images rules
squirrel.toml
Enable only this rule
squirrel.toml