---
title: Lazy Load
description: "Lazy load images, iframes, videos and backgrounds in WordPress with Powered Cache. Learn each option, exclusions, skipping first images and per-post control."
url: "https://poweredcache.com/docs/lazy-load/"
updated: "2026-12-02"
category: Media
---

# Lazy Load

Lazy loading waits to load images, iframes and other media until a visitor scrolls near them. The page becomes usable sooner and uses less data, because media far down the page is only downloaded when it is needed.

**Available in:** Powered Cache (free)
**Where to find it:** Powered Cache → Media

## How lazy loading works

When WordPress builds a page, Powered Cache replaces the address of each eligible image or iframe with a tiny placeholder and keeps the real address in a data attribute. A small script (`lazyload.js`) watches the page and swaps in the real media when it gets close to the screen. A `<noscript>` copy of the original markup is kept for visitors without JavaScript.

Lazy loading is applied to the parts of the page you choose below: post content, widgets, featured images and avatars. Images that your theme prints elsewhere, such as a logo in the header, are not changed.

Powered Cache does not lazy load in the admin area, feeds and post previews. It also turns itself off on AMP pages, in the Opera Mini browser, on print views, on a BuddyPress member's own profile and when WPtouch is active.

## Set up lazy loading

1. Go to **Powered Cache → Media**.
2. Turn on **Lazy Load** (*Delay offscreen media*).
3. Keep the default areas and media types on. Turn on **YouTube Embeds** if your posts contain YouTube videos.
4. Click **Save Settings**.
5. Open a long post in a private browser window and scroll down. Images should appear as you scroll, and the top of the page should load without delay.

Lazy Load is off by default. **Apply Recommended Settings** turns it on together with YouTube Embeds, unless another lazy-load plugin is active.

## Settings

The options below take effect only while **Lazy Load** is on, except [WordPress Native Lazy Load](#wordpress-native-lazy-load).

### Post Content

Lazy loads media inside the content of posts and pages. **Default: on.** This is where most images live, so leave it on.

### Images

Lazy loads `<img>` tags, including their responsive `srcset` versions. **Default: on.** Images that are already embedded as data (`data:image`) are left alone.

### CSS Background Images

Lazy loads background images that are set in an element's `style` attribute, for example `style="background-image: url(...)"` in a cover block or page builder section. **Default: off.** Background images defined in stylesheet files are not affected. Turn it on if your content uses many inline background images, then check sections near the top of the page.

> **New in 4.0:** CSS Background Images is a new option. Lazy loading also handles content that scripts add to the page later more reliably.

### Iframes

Lazy loads embedded iframes such as videos and maps. **Default: on.** The Gravity Forms AJAX iframe is never lazy loaded, so those forms keep working.

### Widgets

Lazy loads media inside text widgets. **Default: on.**

### Post Thumbnails

Lazy loads featured images. **Default: on.** On archive pages with many posts this saves a lot of data. If your theme shows a large featured image at the top of single posts, keep [Skip First Images](#skip-first-images) above zero so that image loads right away.

### Avatars

Lazy loads comment and author avatars. **Default: on.** Useful on posts with many comments.

### YouTube Embeds

Replaces each YouTube player with its preview image and a play button. **Default: off.** The real player loads only when the visitor clicks, and the video then starts playing. A YouTube player loads a lot of scripts, so this is one of the biggest savings on pages with videos.

It applies to iframes whose address starts with `https://www.youtube.com/embed/`, which is what WordPress creates when you paste a YouTube link. Players from `youtube-nocookie.com` are not replaced. The preview image is loaded from `img.youtube.com`.

### Skip First Images

How many lazy-loaded items at the start of the page load right away instead of waiting for the visitor to scroll. **Default: 3.** You can choose from 0 to 30.

The largest image near the top of the page, such as a hero image or a featured image, is often the Largest Contentful Paint (LCP) element that Google measures. If it is lazy loaded, it appears late and your LCP score suffers. Skipping the first few images avoids that. Count the images and iframes visitors see before they scroll, on desktop and mobile, and use that number. Set it to `0` only if nothing above the fold comes from the areas Powered Cache lazy loads.

Skipped items still start as placeholders and are loaded by the script as soon as it runs. For the most important image on a page, it is faster to [exclude it from lazy loading](#exclude-single-image) completely, or to use [LCP Optimization](/docs/lcp-optimization/) (Premium), which preloads it.

### Lazy Load Exclusions

Images, iframes and background elements that should never be lazy loaded. **Default: empty.** Enter one rule per line. Each rule is compared with the complete HTML tag of the item, so you can match a file name, a folder, a domain, a class name or any other attribute.

- **Plain text** matches when the tag contains it: `hero-banner.jpg`, `site-logo`, `player.vimeo.com`.
- **Wildcards:** `*` matches any characters, for example `/uploads/2026/*/slide-*.jpg`.
- **Regular expressions** also work, for example `slide-(1|2).jpg`. A line that is not a valid regular expression is matched as plain text.

Because the whole tag is checked, a short rule can match more than you expect. For example, `logo` also matches an image whose alt text contains the word "logo". Use distinctive text.

### WordPress Native Lazy Load

WordPress adds the browser's own lazy loading (`loading="lazy"`) to many images and iframes. Turning on **Disable WordPress native lazy load** stops WordPress from adding that attribute. **Default: off.** This option works even when Powered Cache Lazy Load is off.

Most sites can leave it off. Turn it on when you want Powered Cache to be the only lazy-loading layer, or when native lazy loading delays an image near the top of the page that your theme prints. If you turn it on while Powered Cache Lazy Load is off, nothing on the page is lazy loaded.

## Exclude a single image

Powered Cache has no fixed "skip" class or attribute. Instead, add something that only that image has to [Lazy Load Exclusions](#lazy-load-exclusions):

- **By file name** (works everywhere, including image blocks): add a line such as `homepage-hero.jpg`.
- **By class or attribute** (for images you write in HTML, for example in a Custom HTML block or a theme template): add `class="skip-lazy"` or `data-skip-lazy` to the `<img>` tag, then add `skip-lazy` or `data-skip-lazy` as a line in the exclusions.

A class added in the block editor under **Advanced → Additional CSS class(es)** is placed on the block's wrapper, not on the image tag, so it does not match. Use the file name for image blocks. After changing exclusions, click **Save Settings** and clear the cache so cached pages are rebuilt.

## Disable lazy loading for one post

Open the post in the editor and check **Disable lazy loading for this post** in the **Powered Cache** panel of the post settings sidebar (in the classic editor, in the Powered Cache meta box). The option appears only while Lazy Load is on.

It stops lazy loading for that post's content and featured image. Media outside the post, such as widgets or comment avatars, can still be lazy loaded. See [Exclude Page From Cache](/docs/exclude-page-from-cache/) for the other options in this panel.

## Other lazy-load plugins

Two lazy-loading layers on the same images can leave images blank or load them twice. When one of these plugins is active, Powered Cache switches off its own lazy loading and leaves WordPress native lazy loading as it is, even if the toggles are on:

- a3 Lazy Load
- BJ Lazy Load
- Lazy Load
- Lazy Load by WP Rocket (Rocket Lazy Load)

The settings screen does not show a notice about this. If lazy loading seems to do nothing, check for these plugins first. The [Optimization Advisor](/docs/optimization-advisor/) also flags an active lazy-load plugin, including Jetpack Boost, and **Apply Recommended Settings** leaves Lazy Load off on such sites. For other plugins or themes that lazy load images, keep only one of them in charge.

## Troubleshooting

### Images stay blank or appear only after scrolling

- Make sure only one lazy-load layer is active (see above).
- Sliders and galleries that read the image address with their own script may need their images excluded. Add the slider's file names or a class from the image tag to [Lazy Load Exclusions](#lazy-load-exclusions).
- The lazy-load script is already excluded from [Delay JavaScript](/docs/delay-javascript/) and from JavaScript combining. Check the browser console for errors from other scripts.

### PageSpeed Insights reports a lazy-loaded LCP image

Increase [Skip First Images](#skip-first-images), or exclude the hero image by file name. Clear the cache afterwards and test again.

## For developers

Each area and media type has a filter, such as `powered_cache_lazy_load_images` or `powered_cache_lazy_load_post_content`. `powered_cache_lazy_load_enabled` turns lazy loading off for a request, `powered_cache_lazy_load_exclusions` changes the exclusion list, and `powered_cache_lazy_load_html` applies lazy loading to your own HTML. The distance before media loads (200 pixels by default) is set with `powered_cache_lazy_load_threshold`. See the [Hooks Reference](/docs/hooks-reference/).

## Related docs

- [LCP Optimization](/docs/lcp-optimization/) (Premium): preload the main image of each page.
- [Image Dimensions](/docs/image-dimensions/) (Premium): prevent layout shifts from images without a size.
- [Disable Embeds and Emoji](/docs/disable-embeds-and-emoji/)
- [Exclude Page From Cache](/docs/exclude-page-from-cache/): the per-post options in the editor.
- [Broken Layout After Optimization](/docs/broken-layout-after-optimization/)
