Hosting & WordPressOctober 22, 2026

Here is the good news about how to lazy load images in WordPress without a plugin: for most sites, you do not need to do anything at all. Since WordPress 5.5, the software adds lazy loading to your post and page images automatically, and every modern browser honours it. Lazy loading means images below the fold wait until a visitor scrolls near them instead of all downloading at once, which makes pages feel dramatically faster — and your site is probably already doing it.

This guide shows you how to confirm it is working, fix the one image you should never lazy load, handle the images that fall outside your posts, and know when a plugin genuinely earns its place. No code, no extra software, and nothing to buy.

The Short Answer: WordPress Already Lazy Loads Your Images

Since version 5.5, WordPress automatically adds the loading="lazy" attribute to images in your posts and pages. Browsers that support it, which is effectively all modern browsers, then defer those images until they are about to appear on screen. Check your own site by viewing a post’s page source and looking for loading=lazy on image tags. If it is there, your content images are already lazy loading, and installing an extra plugin for the same job would only add weight and possible conflicts.

Web page images loading gradually as a visitor scrolls down the page

  • Native lazy loading is built into WordPress 5.5 and later.
  • It uses the standard browser loading attribute, the same feature plugins rely on.
  • All modern browsers support it, including Chrome, Firefox, Safari, and Edge.
  • It applies to images in posts and pages with no settings to change.

How to Check Lazy Loading Is Working on Your Site

Do not take anyone’s word for it — including this guide’s. A two-minute check on your own site settles the question, and you will know exactly which images are deferred and which are not.

  1. Open a long post on your live site. Pick one with several images spread through the text, and make sure you are viewing it as a logged-out visitor, not in the editor.
  2. View the page source. In Chrome or Edge, right-click the page and choose View page source; in Firefox, the same option appears on the right-click menu. Safari users need the Develop menu enabled first, under Safari, then Settings, then Advanced, then Show Develop menu in menu bar.
  3. Search for loading=lazy. Press Ctrl+F (or Cmd+F on a Mac) and type loading=lazy. Every content image below the top of the page should carry it.
  4. Check the first image too. Your hero or featured image should say loading="eager" or carry no loading attribute at all. That is correct, and the next section explains why.
  5. Watch it happen in the Network tab. Open DevTools with F12, click the Network tab, filter by Img, then reload and scroll slowly. Images should appear in the list only as they approach the viewport — proof the browser is deferring them in real time.

If the attribute is missing from your content images, check two things before anything else: your WordPress version, under Dashboard, then Updates, and whether your theme is stripping image attributes. A site running WordPress 5.5 or later with a standard theme should show lazy loading without any extra work.

What Makes Native Lazy Loading Work Well

Native lazy loading works best on images that include width and height attributes, which WordPress adds automatically for media library images. Images pasted from elsewhere or hard-coded in themes sometimes lack dimensions, and browsers may load those eagerly, so tidy image habits matter. Keep images properly uploaded through the media library rather than hotlinked, and let WordPress generate its responsive sizes. This combination — native lazy loading plus correctly sized images — delivers most of the speed benefit people chase plugins for.

Upload through the media library, never hotlink. A hotlinked image is one hosted on someone else’s server and embedded in your page; you cannot control its size, its loading behaviour, or whether it disappears. Uploading through Media, then Add New, gives WordPress the file to resize, compress, and serve at the right dimensions. Let WordPress generate responsive image sizes too — the srcset attribute it adds means a phone downloads a small file while a desktop downloads a larger one, and that saving stacks with lazy loading.

  • Images need width and height attributes to lazy load well.
  • Upload through the media library, never hotlink.
  • Let WordPress generate responsive image sizes.
  • Compress images as well; lazy loading is not a substitute for smaller files.

The One Image You Should Never Lazy Load

Your largest above-the-fold image, usually the hero or featured image at the top, should load immediately, because it is typically the largest contentful paint element Google measures. Lazy loading it delays the very thing your speed score depends on. A hero image that waits for a scroll event that never comes — because the visitor is already looking at it — can add a full second to your Largest Contentful Paint time and drag your PageSpeed score down for no benefit at all.

Hero image at the top of a WordPress page loading immediately instead of lazy loading

WordPress is smart about this: it automatically skips lazy loading for the first images on the page in many contexts. If your theme or a customisation forces lazy loading onto the hero image, override it by setting that image to load eagerly and marking it high priority, which themes often expose as a simple setting. In the block editor, select the image block, open its settings, and look for the loading option; in many themes the featured image is handled automatically. If you want the full picture on how this affects your scores, read our guide to fixing Core Web Vitals in WordPress — LCP is the metric this decision moves most.

  • Never lazy load the hero or featured image.
  • It is usually your LCP element in speed tests.
  • WordPress skips the first images automatically in many cases.
  • Set hero images to eager loading if your theme forces lazy on them.

Lazy Loading Images Outside Your Posts

Native handling covers post content well, but logos, theme images, and builder modules are handled by your theme. Good modern themes lazy load these sensibly; if yours does not, look for a performance or image setting in the theme options before reaching for code. A surprising number of speed problems labelled as a lazy loading issue turn out to be a theme setting switched off by default.

For a truly custom case, a developer can add the loading attribute to a specific image in a template or block with one word of HTML. In the block editor, the image block’s HTML view lets advanced users add loading="lazy" manually to individual images that somehow missed it. Switch the block to Edit as HTML, find the <img tag, and add loading="lazy" before the closing bracket. Avoid lazy loading logos and above-the-fold graphics the same way you avoid it on the hero image — anything a visitor sees in the first screen should load eagerly.

  • Theme images depend on your theme’s behaviour, not on WordPress core.
  • Check theme settings before adding code.
  • Add loading="lazy" manually to single images if needed.
  • Avoid lazy loading logos and above-the-fold graphics.

What Native Lazy Loading Does Not Do

Native lazy loading is excellent, but be honest about what it does not do. It does not compress your images, convert them to WebP, lazy load background images and videos in most cases, or handle iframes in older content. If those are your real bottlenecks, a focused optimisation tool earns its place. Measure before you add anything. Run a PageSpeed test and read what it actually flags — our guide to doing a website speed test walks through reading the results properly. If images are already deferred and sized well, your speed problem lives elsewhere, in hosting, caching, or heavy scripts, and no image plugin will fix it.

Faster website speed test results after lazy loading images in WordPress

  • Native lazy loading does not compress images.
  • Background images and videos may still load eagerly.
  • Measure with PageSpeed before adding tools.
  • Fix the bottleneck the test actually reports.

How to Measure the Difference Lazy Loading Makes

Before you change anything, run a baseline test so you have something to compare against. Open PageSpeed Insights, paste your post URL, and note the Largest Contentful Paint and the total page weight on mobile. Then check your site’s lazy loading with the page-source method above, fix anything it flags — usually a missing attribute or a lazy hero image — and test the same URL again. On an image-heavy post, a working setup typically cuts the initial page weight by half or more, because the browser only downloads the images near the top on first load.

Test on mobile first, since that is where lazy loading matters most: slower connections, smaller screens, and a longer scroll make deferred images far more valuable than on a fast desktop connection. And remember that file size is a separate lever. If your images are still 2 MB each, lazy loading helps the first load but the scroll will still feel heavy. Compressing before upload, or converting to WebP, pairs with lazy loading rather than replacing it. Large uploads can also hit a different limit entirely — if WordPress refuses a file, see our guide on how to increase the maximum file upload size in WordPress.

Common Mistakes to Avoid

The most common mistake is installing a lazy loading plugin on top of native lazy loading and ending up with both fighting over the same images. The result is usually a broken layout or images that never appear. Pick one method: native handling for most sites, a plugin only if you need its extras like video lazy loading or WebP conversion, and never both at once.

The second mistake is lazy loading everything, including the logo and the hero image, which hurts the exact metric lazy loading is meant to improve. The third is assuming lazy loading fixed a slow site without testing. Work through the steps in this guide in order, test after each change, and keep notes on what you changed and when. If your site earns money or handles customer enquiries, schedule this work for your quietest hours and back up first — a backup turns every mistake into a five-minute inconvenience instead of a genuine emergency.

Frequently Asked Questions

Does WordPress lazy load images automatically?

Yes. Since WordPress 5.5, images in posts and pages automatically receive the lazy loading attribute, and all modern browsers honour it. For most sites, no plugin or code is needed at all.

How can I check if lazy loading is working on my site?

Open a post, view the page source in your browser, and search for loading=lazy. Seeing it on content images below the top of the page confirms native lazy loading is active.

Is native lazy loading as good as a plugin?

For standard content images, yes — it uses the exact same browser feature plugins rely on. Plugins add value in other areas like compression, WebP conversion, and lazy loading videos or background images.

Can lazy loading hurt my SEO or speed score?

Only if it is applied to the wrong image. Lazy loading your main hero image delays your largest contentful paint and lowers scores. Keep the first prominent image loading eagerly and everything else lazy.

Should I lazy load images in my theme header and footer?

No. Logos, header graphics, and anything visible in the first screen should load eagerly. Lazy loading belongs on content images further down the page, where visitors have to scroll to reach them.

Sarah Mitchell
Written by Sarah Mitchell

Sarah is a web hosting specialist with 8 years of experience running WordPress sites. She writes practical hosting and WordPress guides.

Similar Posts