By the ImageSEO Team. ~5 min read.
Native lazy loading (loading="lazy") is the default on WordPress since 5.5. It saves bandwidth, improves perceived page speed, and is generally a win. But there’s one trap that still catches thousands of sites in 2026: lazy-loading your hero image. That single mistake can tank your Core Web Vitals and cost you rankings. Here’s the complete 2026 playbook.
Normal <img> tags load immediately when the page loads. With loading="lazy", the browser defers loading until the image approaches the viewport. This saves bandwidth for images below the fold that users might never scroll to.
WordPress 5.5+ applies loading="lazy" to every image by default. That includes your hero image — the one at the top of the page. Your Largest Contentful Paint (LCP) element. The one Google measures for Core Web Vitals.
When you lazy-load the hero, it takes a second longer to appear. Your LCP score drops. If LCP is your biggest content element and it lazy-loads, Google penalizes you.
Tell WordPress not to lazy-load the first image on the page. Three ways:
loading="eager" manually<img src="hero.jpg" alt="..." loading="eager" fetchpriority="high">
Also add fetchpriority="high" so the browser prioritizes it over other resources.
add_filter('wp_img_tag_add_loading_attr', function($value, $image, $context) {
if ($context === 'the_content' && $GLOBALS['wp_query']->current_post === 0) {
return false;
}
return $value;
}, 10, 3);
Most modern optimization plugins (WP Rocket, Perfmatters, FlyingPress) have “exclude above-the-fold images from lazy loading” as a toggle. Turn it on and forget.
fetchpriority="high"background-image with media queriesA slow LCP doesn’t just hurt user experience — it directly reduces your ranking in Google. Google treats Core Web Vitals as a ranking factor, and LCP is the biggest component. Lazy-loading your hero is the #1 thing that silently tanks LCP on otherwise-optimized WordPress sites.
The other 95% of images should still lazy-load. You save bandwidth, users scroll faster, everyone wins.
Lazy loading is a performance tweak. It does not replace writing good alt text. Perfect LCP + empty alt text is still a ranking nightmare for image search. Get both right:
Related: The complete 2026 SEO stack.