{"id":22928,"date":"2026-02-06T14:25:30","date_gmt":"2026-02-06T13:25:30","guid":{"rendered":"https:\/\/pagepro.co\/blog\/?p=22928"},"modified":"2026-11-12T15:47:37","modified_gmt":"2026-11-12T14:47:37","slug":"nextjs-image-component-performance-cwv","status":"publish","type":"post","link":"https:\/\/pagepro.co\/blog\/nextjs-image-component-performance-cwv\/","title":{"rendered":"Next.js Image Component: Performance and CWV in Practice"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"tldr-key-takeaways\">TL;DR \u2014 Key Takeaways<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>next\/image<\/code> does <strong>not<\/strong> guarantee good Core Web Vitals by default \u2014 layout and usage decisions matter far more.<\/li>\n\n\n\n<li>Most LCP wins come from correct preloading (not over-preloading) of true hero images; everything else hurts.<\/li>\n\n\n\n<li>CLS almost always stems from layout mistakes (missing dimensions, unconstrained <code>fill<\/code>, reflowing containers), not from the image component itself.<\/li>\n\n\n\n<li><code>fill<\/code> is convenient but frequently misapplied \u2014 it\u2019s one of the top sources of production CLS regressions.<\/li>\n\n\n\n<li>Preloading too many images (especially carousels or below-fold assets) competes with critical CSS\/JS and can worsen First Contentful Paint (FCP).<\/li>\n\n\n\n<li><code>next\/image<\/code> is unnecessary \u2014 and sometimes harmful \u2014 for icons, SVGs, tiny thumbnails, and animated assets.<\/li>\n\n\n\n<li>In <a href=\"https:\/\/pagepro.co\/blog\/what-is-nextjs\/\">Next.js<\/a> 16+, <code>priority<\/code> is no longer recommended in most cases: use <code>preload<\/code>, <code>loading=\"eager\"<\/code>, or <code>fetchPriority=\"high\"<\/code> intentionally instead (see the <a href=\"https:\/\/nextjs.org\/docs\/app\/api-reference\/components\/image\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">official docs<\/a>).<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>next\/image<\/code> component was designed to fix most of these issues automatically \u2014 but in production, especially after <a href=\"https:\/\/nextjs.org\/blog\/next-16\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Next.js 16 (released October 2025)<\/a>, many teams still see red CWV scores despite \u201cusing next\/image correctly.\u201d Why? Because the component is a powerful tool, <strong>not a silver bullet<\/strong>. Misuse (or over-reliance) creates regressions that vanilla <code>&lt;img&gt;<\/code> would have avoided.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We\u2019ll cover benchmarks, anti-patterns, migration traps, and hard rules you can copy-paste into PR reviews.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what-next-image-actually-does-and-what-it-doesnt\">What next\/image Actually Does \u2014 and What It Doesn\u2019t<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Let\u2019s cut through the hype.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"what-it-does-automatically-and-very-well\"><span class=\"underline-accent\">What it does automatically (and very well):<\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>On-demand resizing for device\/viewport (no manual srcset hell)<\/li>\n\n\n\n<li>Format negotiation: serves AVIF\/WebP when supported, falls back gracefully<\/li>\n\n\n\n<li>Lazy loading by default (images only load when approaching viewport)<\/li>\n\n\n\n<li>Preloading support via the new <code>preload<\/code> prop (replacing the deprecated <code>priority<\/code>)<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"what-it-absolutely-does-not-do\"><span class=\"underline-accent\">What it absolutely does NOT do:<\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Automatically prevent CLS \u2014 that requires correct <code>width<\/code>, <code>height<\/code>, aspect-ratio preservation, and container constraints.<\/li>\n\n\n\n<li>Choose the right loading strategy for your page \u2014 preloading everything is a classic anti-pattern.<\/li>\n\n\n\n<li>Fix bad architectural decisions (e.g., 50+ images decoding at once in a feed \u2192 INP killer).<\/li>\n\n\n\n<li>Replace thoughtful layout design \u2014 <code>fill<\/code> without a positioned parent is still going to shift your page.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The next\/image component does not guarantee good Core Web Vitals by default: layout and usage decisions matter more. Most LCP gains come from preloading only the true hero image, and over-preloading hurts. CLS almost always comes from layout mistakes, such as missing dimensions, unconstrained fill or reflowing containers, not from the next\/image component itself.<\/p>\n\n\n\n<div class=\"c-newsletter-block-acf\">\n    <p class=\"c-newsletter-block-acf__title c-newsletter__header\">\n        EXPERT INSIGHTS, FRICTIONLESSLY DELIVERED!    <\/p>\n    <p class=\"c-newsletter-block-acf__desc c-newsletter__header\">\n        Curated tech news delivered straight to your inbox every month.    <\/p>\n    <form method=\"post\" class=\"c-newsletter-block-acf__form js-newsletter-form c-newsletter__action\" name=\"newsletter-block-form\">\n        <input name=\"newsletter-email\" id=\"newsletter-email\" type=\"text\" class=\"c-newsletter-block-acf__input js-newsletter-input\" placeholder=\"Company Email\" \/>\n        <input name=\"newsletter-campaign\" id=\"newsletter-campaign\" type=\"hidden\" value=\"\" \/>\n        <div class=\"c-newsletter-block-acf__group\">\n            <input name=\"consent\" id=\"consent\" type=\"checkbox\" class=\"js-newsletter-consent\" \/>\n            <label class=\"c-newsletter-block-acf__label\" for=\"consent\">I accept the <a href=\"https:\/\/pagepro.co\/privacy-policy\">Privacy Policy<\/a> and agree to process my personal data by Pagepro for marketing purposes.<\/label>\n        <\/div>\n        <input type=\"submit\" class=\"c-newsletter-block-acf__button button js-newsletter-sub ga-newsletter-form-content\" value=\"Sign up\" \/>\n        <p class=\"theme-size-1 js-message-valid is-hidden is-invalid\"><\/p>\n    <\/form>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-next-image-really-affects-core-web-vitals\">How next\/image Really Affects Core Web Vitals<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Most teams add <code>next\/image<\/code> everywhere, run Lighthouse once, see green scores in dev\u2026 then deploy and watch real-user CWV tank in production. Why? Because the component optimizes bytes and delivery \u2014 <strong>not your layout decisions, not your loading strategy, and not your architecture<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here\u2019s the honest breakdown of how it impacts the three <a href=\"https:\/\/pagepro.co\/blog\/web-vitals-how-to-measure-and-improve-them\/\" target=\"_blank\" rel=\"noreferrer noopener\">Core Web Vitals<\/a> in 2026 (post-Next.js 16), with the failure modes we see constantly in client projects.<\/p>\n\n\n\n<div class=\"wp-block-code-mind-cta c-cta-block\" style=\"background-color:#00141F;color:#FFFFFF\"><div class=\"c-cta-block__content\"><p class=\"c-cta-block__title\">Want to boost your website performance? <\/p><div class=\"c-cta-block__action\"><a href=\"https:\/\/pagepro.co\/services\/nextjs-development\" class=\"c-cta-block__button ga-cta ga-cta-consultation theme-bg-3\">Use our experience<\/a><\/div><\/div><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"lcp-when-preloading-helps-and-when-it-backfires\"><span class=\"underline-accent\">LCP \u2014 When Preloading Helps and When It Backfires<\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Largest Contentful Paint measures when the main content becomes visible. In many apps, that\u2019s a hero image.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>When preloading helps:<\/strong><br>Use <code>preload={true}<\/code> (the explicit replacement for the now-deprecated <a href=\"https:\/\/nextjs.org\/docs\/app\/api-reference\/components\/image#preload\" target=\"_blank\" rel=\"noreferrer noopener nofollow\"><code>priority<\/code> prop<\/a>) <strong>only<\/strong> on the single, true LCP candidate \u2014 typically one above-the-fold hero image. This inserts a <code>&lt;link rel=\"preload\"&gt;<\/code> early in <code>&lt;head&gt;<\/code>, telling the browser to fetch it ASAP. Combine with <code>loading=\"eager\"<\/code> or <code>fetchPriority=\"high\"<\/code> for maximum effect (see the <a href=\"https:\/\/nextjs.org\/docs\/app\/api-reference\/components\/image#preload\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">official recommendation<\/a>).<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"632\" src=\"https:\/\/pagepro.co\/blog\/wp-content\/uploads\/2026\/02\/Screenshot-2026-02-06-at-11.12.45-1024x632.png\" alt=\"A website audit report lists performance issues with estimated potential savings, such as reducing unused CSS and JavaScript, and improving image delivery, under sections for Issues and Diagnostics.\" class=\"wp-image-22931\" srcset=\"https:\/\/pagepro.co\/blog\/wp-content\/uploads\/2026\/02\/Screenshot-2026-02-06-at-11.12.45-1024x632.png 1024w, https:\/\/pagepro.co\/blog\/wp-content\/uploads\/2026\/02\/Screenshot-2026-02-06-at-11.12.45-300x185.png 300w, https:\/\/pagepro.co\/blog\/wp-content\/uploads\/2026\/02\/Screenshot-2026-02-06-at-11.12.45-768x474.png 768w, https:\/\/pagepro.co\/blog\/wp-content\/uploads\/2026\/02\/Screenshot-2026-02-06-at-11.12.45-1536x947.png 1536w, https:\/\/pagepro.co\/blog\/wp-content\/uploads\/2026\/02\/Screenshot-2026-02-06-at-11.12.45-500x308.png 500w, https:\/\/pagepro.co\/blog\/wp-content\/uploads\/2026\/02\/Screenshot-2026-02-06-at-11.12.45-324x200.png 324w, https:\/\/pagepro.co\/blog\/wp-content\/uploads\/2026\/02\/Screenshot-2026-02-06-at-11.12.45.png 1884w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>When it backfires (common production pitfalls):<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Preloading multiple images (e.g., a row of product cards or carousel slides) \u2192 competes with critical CSS\/JS \u2192 delays FCP and can actually worsen LCP.<\/li>\n\n\n\n<li>Preloading below-the-fold images \u2192 wastes bandwidth on assets users might never see.<\/li>\n\n\n\n<li>Using <code>preload<\/code> together with <code>loading<\/code> or <code>fetchPriority<\/code> \u2192 browsers ignore redundant hints, but you still pay the mental overhead.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Rule of thumb (copy-paste for PR reviews):<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">Preload <strong>exactly one<\/strong> image per page \u2014 the confirmed LCP hero.<br>Never preload carousels, grids, or anything below the first viewport.<br>If you have multiple potential LCP candidates (mobile vs desktop), let the browser decide \u2014 don\u2019t force it.<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">In our benchmarks, correct single-hero preloading shaves 300\u2013800 ms off LCP. Over-preloading adds 400\u20131200 ms of delay.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"cls-why-it-still-happens-in-correct-implementations\"><span class=\"underline-accent\">CLS \u2014 Why It Still Happens in \u201cCorrect\u201d Implementations<\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Cumulative Layout Shift tracks unexpected movement after initial render. <code>next\/image<\/code> helps\u2026 but only if you give it the tools.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>How it helps:<\/strong><br>When you supply accurate <code>width<\/code> and <code>height<\/code> (or use <code>fill<\/code> with a constrained parent), the component reserves space via aspect ratio. Modern browsers use this to prevent shifts (detailed in the <a href=\"https:\/\/nextjs.org\/docs\/app\/api-reference\/components\/image#fill\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Image component docs on CLS prevention<\/a>).<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"369\" src=\"https:\/\/pagepro.co\/blog\/wp-content\/uploads\/2026\/02\/Screenshot-2026-02-06-at-11.36.10-1024x369.png\" alt=\"Accessibility report showing three warnings: buttons and links do not have accessible or discernible names, and background and foreground colours do not have sufficient contrast ratio. Explanations are provided below each warning.\" class=\"wp-image-22932\" srcset=\"https:\/\/pagepro.co\/blog\/wp-content\/uploads\/2026\/02\/Screenshot-2026-02-06-at-11.36.10-1024x369.png 1024w, https:\/\/pagepro.co\/blog\/wp-content\/uploads\/2026\/02\/Screenshot-2026-02-06-at-11.36.10-300x108.png 300w, https:\/\/pagepro.co\/blog\/wp-content\/uploads\/2026\/02\/Screenshot-2026-02-06-at-11.36.10-768x277.png 768w, https:\/\/pagepro.co\/blog\/wp-content\/uploads\/2026\/02\/Screenshot-2026-02-06-at-11.36.10-1536x554.png 1536w, https:\/\/pagepro.co\/blog\/wp-content\/uploads\/2026\/02\/Screenshot-2026-02-06-at-11.36.10-500x180.png 500w, https:\/\/pagepro.co\/blog\/wp-content\/uploads\/2026\/02\/Screenshot-2026-02-06-at-11.36.10-324x117.png 324w, https:\/\/pagepro.co\/blog\/wp-content\/uploads\/2026\/02\/Screenshot-2026-02-06-at-11.36.10.png 1542w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Why CLS still kills scores in production:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Missing or wrong dimensions \u2192 browser treats image as 0\u00d70 until load \u2192 big shift when it appears.<\/li>\n\n\n\n<li><code>fill<\/code> without <code>position: relative<\/code> (or fixed\/absolute) on the parent \u2192 image doesn\u2019t render or overflows \u2192 layout breaks.<\/li>\n\n\n\n<li>Responsive layouts that reflow containers after image load (e.g., dynamic padding\/margins based on content).<\/li>\n\n\n\n<li>Using <code>aspectRatio<\/code> prop incorrectly or relying on older browsers that ignore it (pre-Safari 15).<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Rule of thumb:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">Always set explicit <code>width<\/code>\/<code>height<\/code> for static imports.<br>For <code>fill<\/code>, wrap in a div with <code>position: relative<\/code> and defined dimensions\/aspect-ratio.<br>Test CLS in DevTools \u201cPerformance\u201d tab with \u201cEnable advanced paint instrumentation\u201d \u2014 shifts jump out immediately.<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">We\u2019ve seen teams drop CLS from 0.25+ to &lt;0.05 just by fixing unconstrained <code>fill<\/code> usage.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"inp-the-overlooked-cost-of-too-many-images\"><span class=\"underline-accent\">INP \u2014 The Overlooked Cost of Too Many Images<\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Interaction to Next Paint (the 2024+ replacement for FID) measures responsiveness to user input. Images don\u2019t directly cause INP\u2026 until they do.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"625\" src=\"https:\/\/pagepro.co\/blog\/wp-content\/uploads\/2026\/02\/Screenshot-2026-02-06-at-12.03.21-1024x625.png\" alt=\"A website performance report shows the Core Web Vitals assessment as failed. Key metrics: LCP 2.7s, INP 130ms, CLS 0.02. FCP is 2.1s and TTFB is 1.1s. Mobile is selected and various test info is shown.\" class=\"wp-image-22933\" srcset=\"https:\/\/pagepro.co\/blog\/wp-content\/uploads\/2026\/02\/Screenshot-2026-02-06-at-12.03.21-1024x625.png 1024w, https:\/\/pagepro.co\/blog\/wp-content\/uploads\/2026\/02\/Screenshot-2026-02-06-at-12.03.21-300x183.png 300w, https:\/\/pagepro.co\/blog\/wp-content\/uploads\/2026\/02\/Screenshot-2026-02-06-at-12.03.21-768x468.png 768w, https:\/\/pagepro.co\/blog\/wp-content\/uploads\/2026\/02\/Screenshot-2026-02-06-at-12.03.21-1536x937.png 1536w, https:\/\/pagepro.co\/blog\/wp-content\/uploads\/2026\/02\/Screenshot-2026-02-06-at-12.03.21-500x305.png 500w, https:\/\/pagepro.co\/blog\/wp-content\/uploads\/2026\/02\/Screenshot-2026-02-06-at-12.03.21-324x198.png 324w, https:\/\/pagepro.co\/blog\/wp-content\/uploads\/2026\/02\/Screenshot-2026-02-06-at-12.03.21.png 1564w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Hidden INP killers tied to images:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Too many images decoding simultaneously (e.g., infinite scroll feed loading 20+ at once) \u2192 main-thread blocking \u2192 delayed clicks\/taps.<\/li>\n\n\n\n<li>Large images without <code>decoding=\"async\"<\/code> (Next.js defaults to <a href=\"https:\/\/nextjs.org\/docs\/app\/api-reference\/components\/image#decoding\" target=\"_blank\" rel=\"noreferrer noopener nofollow\"><code>async<\/code> for most cases<\/a>) \u2192 decode work blocks event handlers.<\/li>\n\n\n\n<li>Client-side layout thrashing when images load and trigger reflows (especially with <code>fill<\/code> in dynamic grids).<\/li>\n\n\n\n<li>Over-optimized but numerous placeholders\/blurs that still trigger paints on interaction.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Rule of thumb:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">Limit visible images per viewport to ~8\u201312 max.<br>Use <code>decoding=\"async\"<\/code> manually on large below-fold images if needed (though Next.js handles most cases).<br>Profile INP in Chrome DevTools \u2192 look for long \u201cRecalculate Style\u201d or \u201cLayout\u201d tasks triggered by image loads.<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">This is the vitals metric most teams ignore until users complain about \u201claggy\u201d interactions \u2014 then blame React instead of asset volume.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We\u2019ve fixed production INP regressions multiple times just by aggressive lazy-loading + capping image density.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[Next: See these failure modes in a real app \u2192 watch our video walkthrough below.]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Real Production Walkthrough: Fixing CWV in a Next.js App<\/strong><br>We took a production Next.js dashboard where <code>next\/image<\/code> was \u201cused correctly\u201d \u2014 yet LCP was 3.8s, CLS 0.18, and INP spiked on interactions.<\/p>\n\n\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"lyte-wrapper fourthree\" style=\"width:420px;max-width:100%;margin:5px;\"><div class=\"lyMe\" id=\"WYL_gAFLL1ZxrF4\"><div id=\"lyte_gAFLL1ZxrF4\" data-src=\"\/\/i.ytimg.com\/vi\/gAFLL1ZxrF4\/hqdefault.jpg\" class=\"pL\"><div class=\"tC\"><div class=\"tT\"><\/div><\/div><button tabindex=\"0\" class=\"play\"><\/button><div class=\"ctrl\"><div class=\"Lctrl\"><\/div><div class=\"Rctrl\"><\/div><\/div><\/div><noscript><a href=\"https:\/\/youtu.be\/gAFLL1ZxrF4\" rel=\"nofollow\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i.ytimg.com\/vi\/gAFLL1ZxrF4\/0.jpg\" alt=\"YouTube video thumbnail\" width=\"420\" height=\"295\" \/><br \/>Watch this video on YouTube<\/a><\/noscript><\/div><\/div><div class=\"lL\" style=\"max-width:100%;width:420px;margin:5px;\"><\/div><figcaption><\/figcaption><\/figure>\n\n\n<p class=\"wp-block-paragraph\">Watch how subtle misuses (over-preloading, unconstrained fill, decode pressure) tanked scores\u2026 and the 5-minute fixes that brought it to green across the board.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[Embed your YouTube video here: https:\/\/www.youtube.com\/watch?v=gAFLL1ZxrF4]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>(Video timestamp suggestions: 0:45 \u2013 LCP preload mistake, 2:10 \u2013 CLS fill regression, 4:20 \u2013 INP decode thrashing fix.)<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If your metrics still look off after applying these rules, the deeper patterns (and production debugging steps) are covered in our free ebook \u2014 link below in the next section.<\/p>\n\n\n\n<div class=\"wp-block-code-mind-cta c-cta-block\" style=\"background-color:#00141F;color:#FFFFFF\"><div class=\"c-cta-block__content\"><p class=\"c-cta-block__title\">Book a free consultation to startt your project optimisation<\/p><div class=\"c-cta-block__action\"><a href=\"https:\/\/pagepro.co\/contact\" class=\"c-cta-block__button ga-cta ga-cta-consultation theme-bg-3\">Schedule a Call<\/a><\/div><\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"next-image-vs-real-benchmarks-and-trade-offs\">next\/image vs : Real Benchmarks and Trade-offs<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The myth is that you should always replace every <code>&lt;img&gt;<\/code> with <code>next\/image<\/code>.<br>The reality in production apps (especially large-scale ones) is more nuanced.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>next\/image<\/code> gives you powerful automatic optimizations \u2014 but it also adds runtime overhead: component hydration, wrapper divs, inline styles for placeholders, and server-side image resolution logic. For tiny assets or static icons, that overhead can outweigh the benefits.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here\u2019s a no-BS comparison based on real production patterns we\u2019ve measured across multiple Next.js 14\u201316 apps.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th>Scenario<\/th><th>Native <img><\/th><th>next\/image<\/th><th>Better Choice in 2026<\/th><th>Why<\/th><\/tr><\/thead><tbody><tr><td>Hero \/ LCP-critical image<\/td><td>Manual srcset, sizes, loading=&#8221;eager&#8221;, preload<\/td><td>Automatic resizing + AVIF\/WebP + <a href=\"https:\/\/nextjs.org\/docs\/app\/api-reference\/components\/image#preload\"><code>preload={true}<\/code><\/a><\/td><td>next\/image<\/td><td>30\u201370% file size reduction + better format negotiation<\/td><\/tr><tr><td>Above-the-fold static logo \/ banner<\/td><td>Simple, no hydration cost<\/td><td>Adds wrapper + placeholder logic<\/td><td>next\/image (if remote) or <img> (if local)<\/td><td><img> wins if asset is tiny\/static and already optimized<\/td><\/tr><tr><td>SVG icon \/ inline graphic<\/td><td>Zero overhead, perfect sharpness<\/td><td>Forces raster optimization (unless <a href=\"https:\/\/nextjs.org\/docs\/app\/api-reference\/components\/image#unoptimized\"><code>unoptimized<\/code><\/a>)<\/td><td><img> or inline SVG<\/td><td>next\/image rasterizes SVGs \u2192 loses vector benefits + adds bloat<\/td><\/tr><tr><td>CMS thumbnails in a grid\/list (50+ images)<\/td><td>Fast client render, but manual lazy + srcset<\/td><td>Automatic lazy + blur-up + responsive sizes<\/td><td>next\/image (with <a href=\"https:\/\/nextjs.org\/docs\/app\/api-reference\/components\/image#unoptimized\"><code>unoptimized<\/code><\/a> for tiny thumbs)<\/td><td>Automation saves dev time; manual <img> becomes maintenance hell<\/td><\/tr><tr><td>Very small decorative image (&lt;5 KB)<\/td><td>Instant, no JS cost<\/td><td>Still creates component + placeholder<\/td><td><img> with loading=&#8221;lazy&#8221;<\/td><td>Overhead of next\/image is measurable on low-end devices<\/td><\/tr><tr><td>Animated GIF \/ WebP animation<\/td><td>Works natively<\/td><td>Can break animation unless <a href=\"https:\/\/nextjs.org\/docs\/app\/api-reference\/components\/image#unoptimized\"><code>unoptimized<\/code><\/a><\/td><td><img> or video element<\/td><td>next\/image often forces static fallback<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Key takeaways from benchmarks we\u2019ve run:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>For <strong>LCP heroes<\/strong> \u2192 next\/image consistently wins (faster delivery, smaller payloads).<\/li>\n\n\n\n<li>For <strong>icons, SVGs, tiny assets<\/strong> \u2192 native <code>&lt;img&gt;<\/code> (or better: inline SVG) is lighter and faster to interactive.<\/li>\n\n\n\n<li>In lists\/feeds with 50+ images \u2192 next\/image\u2019s lazy + format negotiation usually nets 40\u201360% bandwidth savings, but only if you avoid over-<a href=\"https:\/\/pagepro.co\/blog\/how-to-optimize-images-for-web\/\" target=\"_blank\" rel=\"noreferrer noopener\">optimizing thumbnails<\/a> (use <a href=\"https:\/\/nextjs.org\/docs\/app\/api-reference\/components\/image#unoptimized\"><code>unoptimized<\/code><\/a> for &lt;10 KB images).<\/li>\n\n\n\n<li>Hydration cost of next\/image wrappers is small (~1\u20133 KB gzipped JS per image in bundles), but it adds up in image-heavy dashboards \u2192 profile with React DevTools.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Bottom line: Treat <code>next\/image<\/code> as the <strong>default<\/strong> for content images, but <strong>deliberately fall back to<\/strong> for icons, logos, SVGs, and micro-assets. Blind replacement everywhere is one of the most common performance anti-patterns we audit.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"image-sizing-that-doesnt-break-cwv\">Image Sizing That Doesn\u2019t Break CWV<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The single biggest reason teams still see CLS after adopting <code>next\/image<\/code> is incorrect or missing sizing information.<br>The component can\u2019t guess your layout \u2014 it relies on you to tell it how much space to reserve <a href=\"https:\/\/nextjs.org\/docs\/app\/api-reference\/components\/image#width-and-height\"><\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In 2026 (Next.js 16+), the rules haven\u2019t changed fundamentally, but the cost of getting them wrong has gone up: higher INP penalties from reflows, stricter Lighthouse scoring, and users on slower networks noticing shifts more.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here\u2019s how to do sizing correctly \u2014 and the most common ways teams still break it.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"static-imports-vs-remote-images\"><span class=\"underline-accent\">Static Imports vs Remote Images<\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Static imports<\/strong> (local files in <code>\/public<\/code> or next to the component) are the gold standard for performance and safety.<\/p>\n\n\n\n<pre class=\"wp-block-code-mind-code c-code\"><code class=\"tsx\">\/\/ Good: static import \u2192 Next.js knows exact dimensions at build time \nimport hero from '@\/public\/hero-desktop.jpg';<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Next.js extracts width\/height automatically \u2192 perfect aspect ratio \u2192 zero CLS risk.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Remote images<\/strong> (from CMS, S3, external CDN) require explicit width\/height or a trusted remotePatterns config <a href=\"https:\/\/nextjs.org\/docs\/app\/api-reference\/components\/image#remote-images\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a>.<\/p>\n\n\n\n<pre class=\"wp-block-code-mind-code c-code\"><code class=\"tsx\">\/\/ Acceptable but requires manual dimensions\n&lt;Image\n  src=\"https:\/\/images.unsplash.com\/photo-...\"\n  alt=\"Remote hero\"\n  width={1200}\n  height={800}\n  sizes=\"(max-width: 768px) 100vw, 50vw\"\n  className=\"object-cover\"\n\/><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Anti-pattern to avoid:<\/strong> Omitting width\/height on remote images \u2192 fallback to 0\u00d70 \u2192 massive CLS when the image loads.<\/p>\n\n\n<div class=\"c-newsletter-sendgrid-wrapper js-newsletter-sendgrid-wrapper ga-filedownload-viewed\">\n    <div class=\"c-newsletter-sendgrid\">\n                    <p class=\"c-newsletter-sendgrid__title\">\n                Fix Core Web Vitals for Your Next.js Website            <\/p>\n        \n         \n            <p class=\"c-newsletter-sendgrid__description\">\n                Download our free &#8216;Fix Core Web Vitals: Next.js Optimization Guide for High-Traffic Websites&#8217; and discover actionable strategies to improve performance, boost SEO, and enhance user experience on your Next.js site.            <\/p>\n        \n        <form action=\"\" class=\"c-newsletter-sendgrid__form f-form js-newsletter-sendgrid\" data-key=\"d032549d-30ce-4799-8562-7d58bbb929ab\">\n            <div class=\"c-newsletter-sendgrid__form-mail\">\n                <label class=\"c-label\" for=\"newsletter_email\">Company E-mail address<\/label>\n                <input class=\"c-input js-newsletter-sendgrid-email\" type=\"email\" id=\"newsletter_email\" required>\n                <input class=\"c-newsletter-sendgrid__button ga-cta-filedownload\" type=\"submit\" value=\"Get the ebook now\">\n            <\/div>\n            <div class=\"c-newsletter-sendgrid__form-consent\">\n                                                        <input class=\"c-checkbox js-newsletter-consent\" type=\"checkbox\" name=\"newsletter_consent\" id=\"newsletter_consent_1\" required>\n                    <label class=\"c-label\" for=\"newsletter_consent_1\">By providing your e-mail address, you agree to our Privacy Policy. We will not send you any spam \u2013 only link for downloading the e-book and probably some more useful resources in the future.<\/label>\n                            <\/div>\n        <\/form>\n\n        <div class=\"c-newsletter-sendgrid__cover-container\">\n                            <img decoding=\"async\" class=\"c-newsletter-sendgrid__cover-1\" src=\"https:\/\/pagepro.co\/blog\/wp-content\/uploads\/2024\/11\/Fix-Core-Web-Vitals_-Next.js-Optimization-Guide.jpg\" alt=\"Fix Core Web Vitals: Next.js Optimization Guide\" >\n                                                    <span class=\"c-newsletter-sendgrid__type\">PDF<\/span>\n                    <\/div>\n\n        <div class=\"c-newsletter-sendgrid__popup-wrapper js-newsletter-sendgrid-popup is-hidden\">\n            <div class=\"c-newsletter-sendgrid__popup\">\n                <div class=\"c-newsletter-sendgrid__popup-icon\">\n                    <svg width=\"140\" height=\"140\" viewBox=\"0 0 140 140\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <g clip-path=\"url(#clip0_6621_2135)\">\n                    <path d=\"M65.625 100.625C65.625 109.908 69.3125 118.81 75.8763 125.374C82.44 131.938 91.3424 135.625 100.625 135.625C109.908 135.625 118.81 131.938 125.374 125.374C131.938 118.81 135.625 109.908 135.625 100.625C135.625 91.3424 131.938 82.44 125.374 75.8763C118.81 69.3125 109.908 65.625 100.625 65.625C91.3424 65.625 82.44 69.3125 75.8763 75.8763C69.3125 82.44 65.625 91.3424 65.625 100.625Z\" stroke=\"#0A2B3D\" stroke-width=\"8.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\/>\n                    <path d=\"M116.223 90.4517L99.2774 113.044C98.9005 113.545 98.4206 113.959 97.8701 114.259C97.3196 114.558 96.7113 114.737 96.0862 114.781C95.461 114.826 94.8335 114.736 94.246 114.518C93.6584 114.3 93.1244 113.959 92.6799 113.517L83.9299 104.767\" stroke=\"#0A2B3D\" stroke-width=\"8.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\/>\n                    <path d=\"M48.125 91.875H13.125C10.8044 91.875 8.57876 90.9531 6.93782 89.3122C5.29687 87.6712 4.375 85.4456 4.375 83.125V13.125C4.375 10.8044 5.29687 8.57876 6.93782 6.93782C8.57876 5.29687 10.8044 4.375 13.125 4.375H118.125C120.446 4.375 122.671 5.29687 124.312 6.93782C125.953 8.57876 126.875 10.8044 126.875 13.125V52.5\" stroke=\"#0A2B3D\" stroke-width=\"8.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\/>\n                    <path d=\"M124.898 7.5835L77.3909 44.1235C74.0176 46.7185 69.881 48.1255 65.625 48.1255C61.3691 48.1255 57.2325 46.7185 53.8592 44.1235L6.35254 7.5835\" stroke=\"#0A2B3D\" stroke-width=\"8.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\/>\n                    <\/g>\n                    <defs>\n                    <clipPath id=\"clip0_6621_2135\">\n                    <rect width=\"140\" height=\"140\" fill=\"white\"\/>\n                    <\/clipPath>\n                    <\/defs>\n                    <\/svg>\n                <\/div>\n                                    <p class=\"c-newsletter-sendgrid__popup-text\">\n                        Check your email for the comprehensive Next.js guide!                    <\/p>\n                                <div class=\"c-newsletter-sendgrid__popup-action\">\n                    <button class=\"c-newsletter-sendgrid__button c-newsletter-sendgrid__button--full-width js-newsletter-sendgrid-popup-close\">Close<\/button>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"sizes-explained-without-guesswork\"><span class=\"underline-accent\">sizes Explained Without Guesswork<\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The sizes prop tells the browser which image variant to request before it knows the final layout <a href=\"https:\/\/nextjs.org\/docs\/app\/api-reference\/components\/image#sizes\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a>. Wrong sizes \u2192 either oversized images (slow LCP) or under-optimized ones (blurry on desktop).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Correct pattern for a responsive hero that takes full width on mobile, half on desktop:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code-mind-code c-code\"><code class=\"tsx\">sizes=\"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 800px\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Breakdown:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Mobile (&lt;768px): 100vw \u2192 full viewport width<\/li>\n\n\n\n<li>Tablet (768\u20131200px): 50vw \u2192 half viewport<\/li>\n\n\n\n<li>Desktop (&gt;1200px): fixed 800px max (prevents requesting 4K images on big screens)<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Common mistake:<\/strong> Using only 100vw everywhere \u2192 Desktop requests unnecessarily huge images \u2192 slower LCP + higher bandwidth cost.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Rule of thumb for sizes:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Start with mobile-first: 100vw for full-width elements<\/li>\n\n\n\n<li>Add media-query breakpoints that match your CSS<\/li>\n\n\n\n<li>Cap at a realistic max (e.g., 1200px or 1600px) for large screens<\/li>\n\n\n\n<li>Test with DevTools \u2192 Network tab \u2192 throttle to \u201cSlow 4G\u201d and check requested image sizes<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"fill-when-its-right-and-when-its-wrong\"><span class=\"underline-accent\">fill: When It\u2019s Right \u2014 and When It\u2019s Wrong<\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">fill is great for responsive, background-style images\u2026 but it\u2019s the #1 CLS culprit when misused <a href=\"https:\/\/nextjs.org\/docs\/app\/api-reference\/components\/image#fill\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Correct usage (contained):<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code-mind-code c-code\"><code class=\"tsx\">&lt;div className=\"relative w-full pt-[56.25%]\"> {\/* 16:9 aspect ratio \u2013 preserves ratio to prevent shifts *\/}\n  &lt;Image\n    src={hero}\n    alt=\"Background video cover\"\n    fill\n    sizes=\"(max-width: 768px) 100vw, 50vw\"\n    className=\"object-cover\"\n  \/>\n&lt;\/div><\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Parent has position: relative<\/li>\n\n\n\n<li>Aspect ratio is reserved via padding hack or aspect-ratio CSS<\/li>\n\n\n\n<li>No layout shift<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Wrong usage (causes CLS):<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code-mind-code c-code\"><code class=\"tsx\">\/\/ BAD: no constrained parent\n&lt;div>\n  &lt;Image src={hero} alt=\"Hero\" fill className=\"object-cover\" \/>\n&lt;\/div><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u2192 Image has no bounding box \u2192 overflows or shifts content when it loads.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Anti-patterns we see constantly:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>fill inside flex\/grid items without fixed height \u2192 reflow on load<\/li>\n\n\n\n<li>fill + object-fit: contain without aspect-ratio \u2192 white space shifts<\/li>\n\n\n\n<li>fill on decorative background images that could be CSS background-image<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Rule of thumb:<\/strong> Only use fill when you truly need it to fill a container responsively. Prefer explicit width\/height + sizes for most content images \u2014 less magic, fewer surprises.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Mastering sizing is 70% of winning at next\/image. Get this wrong, and no amount of quality tweaks or format negotiation will save your CWV scores.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Wrong (CLS disaster) usage:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code-mind-code c-code\"><code class=\"tsx\">\/\/ BAD \u2013 no space reserved\n&lt;div className=\"w-full\">\n  &lt;Image src={hero} alt=\"Hero\" fill className=\"object-cover\" \/>\n&lt;\/div><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u2192 Image loads \u2192 content jumps down.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Anti-patterns we still see weekly:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>fill inside auto-height flex\/grid items \u2192 reflow cascade<\/li>\n\n\n\n<li>fill + object-fit: contain without aspect ratio \u2192 letterboxing shifts<\/li>\n\n\n\n<li>fill on small decorative elements that should be CSS backgrounds<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Rule of thumb:<\/strong> Use fill <strong>only<\/strong> when the image truly needs to fill a responsive container. Prefer fixed width\/height + sizes for 80% of content images \u2014 far fewer surprises.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Mastering sizing (not quality or formats) is what actually moves CWV needles in production. Get this wrong and the rest is cosmetic.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"advanced-patterns-for-production-apps\">Advanced Patterns for Production Apps<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Once the basics (sizing, preloading, correct fill usage) are solid, the next level is how <code>next\/image<\/code> behaves when the app actually scales: high traffic, global users, dynamic content from CMS\/user uploads, and teams that care about real money (bandwidth bills, origin requests, edge cache hit rates).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">These are the patterns that turn \u201cit works locally\u201d into \u201cit survives Cyber Monday without exploding costs or CWV regressions\u201d.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"custom-loaders-and-cdns-when-its-worth-it\"><span class=\"underline-accent\">Custom Loaders and CDNs (When It\u2019s Worth It)<\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">By default, Next.js handles <a href=\"https:\/\/pagepro.co\/blog\/how-to-optimize-images-for-web\/\" target=\"_blank\" rel=\"noreferrer noopener\">image optimization<\/a> via its built-in loader (<code>\/_next\/image<\/code> route on Vercel\/Netlify, or equivalent on self-hosted).<br>It\u2019s excellent for 90% of apps \u2014 but at serious scale it can become expensive or slow.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When to switch to a custom loader + external CDN (Cloudinary, Imgix, Akamai, ImageKit, or Vercel\u2019s Edge Network with custom config):<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You\u2019re burning through Vercel bandwidth\/image optimization limits<\/li>\n\n\n\n<li>You need advanced transformations (smart cropping, face-aware resize, AI enhancement, watermarking)<\/li>\n\n\n\n<li>You want images served from POPs even closer to users than Vercel\u2019s edge<\/li>\n\n\n\n<li>You already pay for a dedicated image CDN anyway<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Minimal custom loader setup (Imgix example):<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code-mind-code c-code\"><code class=\"javascript\">\/\/ next.config.js\nmodule.exports = {\n  images: {\n    loader: 'custom',\n    loaderFile: '.\/lib\/custom-image-loader.js',\n  },\n};\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Rule of thumb (when to actually do this):<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If your monthly image bandwidth &gt; ~50\u2013100 GB \u2192 seriously evaluate<\/li>\n\n\n\n<li>If you need per-image analytics or transformations \u2192 yes<\/li>\n\n\n\n<li>If you\u2019re a small\/medium site and <a href=\"https:\/\/pagepro.co\/blog\/optimizing-vercel-hosting-costs\/\" target=\"_blank\" rel=\"noreferrer noopener\">Vercel costs <\/a>are fine \u2192 <strong>stay default<\/strong> \u2014 custom loaders add complexity, debugging pain, and another vendor<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"remote-images-and-security-gotchas\"><span class=\"underline-accent\">Remote Images and Security Gotchas<\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Any image coming from outside your domain (CMS, S3, user uploads, Unsplash, etc.) <strong>must<\/strong> be explicitly allowed via remotePatterns \u2014 otherwise Next.js blocks it at build\/runtime to prevent SSRF (Server-Side Request Forgery) attacks <a href=\"https:\/\/nextjs.org\/docs\/app\/api-reference\/next-config-js\/images#remotepatterns\" target=\"_blank\" rel=\"noreferrer noopener\"><\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Secure pattern (tightest practical config):<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code-mind-code c-code\"><code class=\"javascript\">images: {\n  remotePatterns: [\n    {\n      protocol: 'https',\n      hostname: 'images.example-cms.com',\n      pathname: '\/media\/**',\n    },\n    {\n      protocol: 'https',\n      hostname: '**.cloudinary.com',\n    },\n    {\n      protocol: 'https',\n      hostname: 'images.unsplash.com',\n    },\n  ],\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Common dangerous patterns we still see in production audits (2026):<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>hostname: &#8216;*&#8217; \u2192 complete open SSRF hole<\/li>\n\n\n\n<li>hostname: &#8216;localhost&#8217; or 127.0.0.1 left from dev \u2192 production RCE risk<\/li>\n\n\n\n<li>Wildcard on hostname + no pathname \u2192 attacker can proxy internal services<\/li>\n\n\n\n<li>Forgetting to add new domains after CMS migration \u2192 broken images + 500s<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Rule of thumb (security checklist):<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Never use * on hostname unless you have a very strong reason + tight pathname<\/li>\n\n\n\n<li>Always specify protocol: &#8216;https&#8217;<\/li>\n\n\n\n<li>Use pathname globs (\/**) only for known prefixes<\/li>\n\n\n\n<li>Review remotePatterns in every major CMS\/asset-provider change<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"bandwidth-and-cost-considerations-at-scale\"><span class=\"underline-accent\">Bandwidth and Cost Considerations at Scale<\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Optimization saves money \u2014 misconfiguration wastes it very quickly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Real-world numbers from <a href=\"https:\/\/pagepro.co\/services\/nextjs-development\">production Next.js apps<\/a> (2025\u20132026 data):<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>One unoptimized 4K hero image repeated across 100k pageviews \u2192 5\u201312 MB per view \u2192 $800\u2013$3,000\/month extra CDN cost<\/li>\n\n\n\n<li>Over-preloading 8\u201312 images per page \u2192 2\u20134\u00d7 bandwidth for bounce sessions<\/li>\n\n\n\n<li>No aggressive minimumCacheTTL \u2192 repeated origin fetches \u2192 higher compute + slower TTFB<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Quick, high-impact config wins:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code-mind-code c-code\"><code class=\"javascript\">images: {\n  minimumCacheTTL: 2592000, \/\/ 30 days for static\/near-static images\n  formats: ['image\/avif', 'image\/webp'], \/\/ force modern formats\n  quality: 75, \/\/ default balance (lower = more savings, test visually)\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Monitor:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Vercel \u2192 Usage \u2192 Image Optimization tab<\/li>\n\n\n\n<li>Cloudflare\/Cloudinary\/Akamai dashboards for origin hit rate<\/li>\n\n\n\n<li>Real-user field data (CrUX, SpeedCurve, Web Vitals extension)<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">If your image-related costs are climbing or CWV is still red under load, image optimization is only one piece \u2014 the full system-level fixes (caching, <a href=\"https:\/\/pagepro.co\/blog\/nextjs-rendering-strategies-ssr-ssg-isr-csr\/\">rendering strategies<\/a>, bundle splitting) are covered in depth in our <a href=\"https:\/\/pagepro.co\/ebook\/ebook-nextjs-performance\" target=\"_blank\" rel=\"noreferrer noopener\">performance playbook<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th>Content in the section<\/th><th>Source anchor \/ section used<\/th><\/tr><\/thead><tbody><tr><td>Static imports auto-extract dimensions<\/td><td><code>#width-and-height<\/code><\/td><\/tr><tr><td>Remote images require manual width\/height<\/td><td><code>#remote-images<\/code> + <code>#width-and-height<\/code><\/td><\/tr><tr><td><code>sizes<\/code> prop purpose &amp; syntax<\/td><td><code>#sizes<\/code><\/td><\/tr><tr><td>Mobile-first + capping max width example<\/td><td><code>#sizes<\/code> (examples &amp; guidance)<\/td><\/tr><tr><td><code>fill<\/code> correct usage + parent requirements<\/td><td><code>#fill<\/code><\/td><\/tr><tr><td>Unconstrained <code>fill<\/code> causes CLS<\/td><td><code>#fill<\/code> (warnings)<\/td><\/tr><tr><td><code>preload<\/code> replacing <code>priority<\/code><\/td><td><code>#preload<\/code><\/td><\/tr><tr><td>General CLS prevention responsibility<\/td><td><code>#width-and-height<\/code> (implicit via aspect ratio docs)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n<div class=\"c-newsletter-sendgrid-wrapper js-newsletter-sendgrid-wrapper ga-filedownload-viewed\">\n    <div class=\"c-newsletter-sendgrid\">\n                    <p class=\"c-newsletter-sendgrid__title\">\n                Get Next.js Vercel Cost Optimization Guide            <\/p>\n        \n         \n            <p class=\"c-newsletter-sendgrid__description\">\n                Learn real-life techniques to optimize the hosting costs of your Next.js apps.            <\/p>\n        \n        <form action=\"\" class=\"c-newsletter-sendgrid__form f-form js-newsletter-sendgrid\" data-key=\"e60f07b6-7b2d-4939-88db-8a4715700f39\">\n            <div class=\"c-newsletter-sendgrid__form-mail\">\n                <label class=\"c-label\" for=\"newsletter_email\">Company E-mail address<\/label>\n                <input class=\"c-input js-newsletter-sendgrid-email\" type=\"email\" id=\"newsletter_email\" required>\n                <input class=\"c-newsletter-sendgrid__button ga-cta-filedownload\" type=\"submit\" value=\"Download\">\n            <\/div>\n            <div class=\"c-newsletter-sendgrid__form-consent\">\n                                                        <input class=\"c-checkbox js-newsletter-consent\" type=\"checkbox\" name=\"newsletter_consent\" id=\"newsletter_consent_2\" required>\n                    <label class=\"c-label\" for=\"newsletter_consent_2\">I accept the Privacy Policy and agree to process my personal data by Pagepro for marketing purposes.<\/label>\n                            <\/div>\n        <\/form>\n\n        <div class=\"c-newsletter-sendgrid__cover-container\">\n                            <img decoding=\"async\" class=\"c-newsletter-sendgrid__cover-1\" src=\"https:\/\/pagepro.co\/blog\/wp-content\/uploads\/2025\/04\/Cover-1.jpg\" alt=\"Cover of a guide titled NEXT.JS VERCEL COST OPTIMISATION GUIDE by Jakub Dakowicz and Chris Lojniewski, featuring insights on self-hosting Nextjs, with a red geometric background and Pagepro logo in the top left corner.\" >\n                                            <\/div>\n\n        <div class=\"c-newsletter-sendgrid__popup-wrapper js-newsletter-sendgrid-popup is-hidden\">\n            <div class=\"c-newsletter-sendgrid__popup\">\n                <div class=\"c-newsletter-sendgrid__popup-icon\">\n                    <svg width=\"140\" height=\"140\" viewBox=\"0 0 140 140\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <g clip-path=\"url(#clip0_6621_2135)\">\n                    <path d=\"M65.625 100.625C65.625 109.908 69.3125 118.81 75.8763 125.374C82.44 131.938 91.3424 135.625 100.625 135.625C109.908 135.625 118.81 131.938 125.374 125.374C131.938 118.81 135.625 109.908 135.625 100.625C135.625 91.3424 131.938 82.44 125.374 75.8763C118.81 69.3125 109.908 65.625 100.625 65.625C91.3424 65.625 82.44 69.3125 75.8763 75.8763C69.3125 82.44 65.625 91.3424 65.625 100.625Z\" stroke=\"#0A2B3D\" stroke-width=\"8.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\/>\n                    <path d=\"M116.223 90.4517L99.2774 113.044C98.9005 113.545 98.4206 113.959 97.8701 114.259C97.3196 114.558 96.7113 114.737 96.0862 114.781C95.461 114.826 94.8335 114.736 94.246 114.518C93.6584 114.3 93.1244 113.959 92.6799 113.517L83.9299 104.767\" stroke=\"#0A2B3D\" stroke-width=\"8.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\/>\n                    <path d=\"M48.125 91.875H13.125C10.8044 91.875 8.57876 90.9531 6.93782 89.3122C5.29687 87.6712 4.375 85.4456 4.375 83.125V13.125C4.375 10.8044 5.29687 8.57876 6.93782 6.93782C8.57876 5.29687 10.8044 4.375 13.125 4.375H118.125C120.446 4.375 122.671 5.29687 124.312 6.93782C125.953 8.57876 126.875 10.8044 126.875 13.125V52.5\" stroke=\"#0A2B3D\" stroke-width=\"8.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\/>\n                    <path d=\"M124.898 7.5835L77.3909 44.1235C74.0176 46.7185 69.881 48.1255 65.625 48.1255C61.3691 48.1255 57.2325 46.7185 53.8592 44.1235L6.35254 7.5835\" stroke=\"#0A2B3D\" stroke-width=\"8.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\/>\n                    <\/g>\n                    <defs>\n                    <clipPath id=\"clip0_6621_2135\">\n                    <rect width=\"140\" height=\"140\" fill=\"white\"\/>\n                    <\/clipPath>\n                    <\/defs>\n                    <\/svg>\n                <\/div>\n                                    <p class=\"c-newsletter-sendgrid__popup-text\">\n                        Thank you for signing up. Check your e-mail for the guide.                    <\/p>\n                                <div class=\"c-newsletter-sendgrid__popup-action\">\n                    <button class=\"c-newsletter-sendgrid__button c-newsletter-sendgrid__button--full-width js-newsletter-sendgrid-popup-close\">Close<\/button>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"migrating-from-legacy-or-broken-next-image-usage\">Migrating from Legacy or Broken next\/image Usage<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Many production Next.js apps still run on patterns that worked fine in Next.js 12\u201313 but are now actively harmful in 2026 (v16+): deprecated props, unconstrained <code>fill<\/code>, over-preloading, missing <code>sizes<\/code>, or legacy wrappers that bloat bundles.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Migration is usually low-risk if done systematically \u2014 but skip steps and you\u2019ll introduce regressions (CLS spikes, LCP jumps, INP delays).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here\u2019s a practical, battle-tested checklist we use in audits and upgrades. Run it page-by-page or component-by-component.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"migration-checklist\"><span class=\"underline-accent\">Migration Checklist<\/span><\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"1-replace-deprecated-priority-%e2%86%92-preload\">1. Replace deprecated priority \u2192 preload<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Find all <\/li>\n\n\n\n<li>Replace with preload={true} only on confirmed LCP heroes<\/li>\n\n\n\n<li>Remove from carousels, lists, below-fold images \u2014 they hurt FCP &#8220;`tsx<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\/\/ Before (legacy)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\/\/ After<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"2-fix-unconstrained-fill-layouts-top-cls-source\">2. Fix unconstrained fill layouts (top CLS source)<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Search for fill without position: relative parent or aspect ratioWrap in a container with defined ratio<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code-mind-code c-code\"><code class=\"tsx\">\/\/ Bad (causes shift) \n&lt;div className=\"w-full\">\n  &lt;Image src={hero} fill alt=\"Hero\" \/>\n&lt;\/div> \n\n\/\/ Fixed \n&lt;div className=\"relative aspect-[16\/9] w-full\"> \n  &lt;Image src={hero} fill sizes=\"(max-width: 768px) 100vw, 50vw\" alt=\"Hero\" className=\"object-cover\" \/> \n&lt;\/div><\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"3-add-missing-sizes-to-responsive-images\">3. Add missing sizes to responsive images<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Any fill or large hero without sizes \u2192 defaults to 100vw \u2192 oversized desktop downloadsAdd realistic media-query based sizes<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code-mind-code c-code\"><code class=\"tsx\">\/\/ Before: no sizes \u2192 desktop gets huge image\n&lt;Image\n  src={product}\n  fill\n  alt=\"Product\"\n\/>\n\n\/\/ After\n&lt;Image\n  src={product}\n  fill\n  sizes=\"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 800px\"\n  alt=\"Product\"\n\/><\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"4-remove-or-unoptimized-tiny-static-assets\">4. Remove or unoptimized tiny\/static assets<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>SVGs, icons, logos &lt;10 KB, animated GIFs\/WebPAdd unoptimized or switch to &lt;img&gt;<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code-mind-code c-code\"><code class=\"tsx\">\/\/ Legacy: next\/image on icon \u2192 unnecessary wrapper\n&lt;Image\n  src=\"\/logo.svg\"\n  width={32}\n  height={32}\n  alt=\"Logo\"\n\/>\n\n\/\/ Better\n&lt;Image\n  src=\"\/logo.svg\"\n  width={32}\n  height={32}\n  alt=\"Logo\"\n  unoptimized\n\/>\n\n\/\/ or just\n&lt;img\n  src=\"\/logo.svg\"\n  width=\"32\"\n  height=\"32\"\n  alt=\"Logo\"\n\/><\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"5-audit-over-preloading-and-decode-pressure\">5. Audit over-preloading and decode pressure<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Search for multiple preload={true} on the same pageLimit to&nbsp;<strong>one<\/strong>&nbsp;per page (true LCP hero)For large below-fold images \u2192 consider decoding=\u201dasync\u201d if needed (though Next.js defaults help)<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Quick audit tip:<\/strong>&nbsp;Open Chrome DevTools \u2192 Network \u2192 filter images \u2192 check if multiple preloads fire early. \u2192 Keep only the hero; remove the rest.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"6-test-post-migration-cwv-critical\">6. Test post-migration CWV (critical)<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Run Lighthouse on key pages before\/after<\/li>\n\n\n\n<li>Use Web Vitals Chrome extension or Vercel Analytics for field data<\/li>\n\n\n\n<li>Watch for regressions: CLS &gt;0.1, LCP &gt;2.5s, INP &gt;200ms<\/li>\n\n\n\n<li>Fix any new shifts by double-checking dimensions\/aspect ratios<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Pro tip:<\/strong> Use a codemod or simple grep + replace for steps 1\u20133 across the codebase. Then manually review fill usages (they cause 60\u201370% of post-migration CLS spikes in our experience).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you finish this checklist and still see red metrics or high image costs, the issue is rarely just images \u2014 it\u2019s usually systemic (rendering mode, caching, bundle size). That\u2019s where our broader<a href=\"https:\/\/pagepro.co\/ebook\/ebook-nextjs-performance\" target=\"_blank\" rel=\"noreferrer noopener\"> playbook helps<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"common-mistakes-quick-reference\"><span class=\"underline-accent\">Common Mistakes (Quick Reference)<\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Here are the most frequent next\/image mistakes we still see in production Next.js apps in 2026 \u2014 ranked roughly by how often they cause measurable CWV damage (CLS, LCP, INP) or unnecessary costs.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Quick list \u2014 scan it, search your codebase for these patterns, fix the highest-impact ones first.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Preloading too many images (or the wrong ones) Classic: preload={true} on carousels, product grids, or every hero on the page. Result: FCP\/LCP delay + wasted bandwidth. Fix: Limit to <strong>exactly one<\/strong> true LCP hero per page. Remove from everything else.<\/li>\n\n\n\n<li>Using fill without a constrained parent container Classic: &lt;Image fill \/&gt; inside a div without position: relative + aspect ratio. Result: Massive CLS when image loads (often 0.2\u20130.5+). Fix: Always wrap in &lt;div className=&#8221;relative aspect-[ratio]&#8221;&gt; or equivalent.<\/li>\n\n\n\n<li>No or incorrect sizes prop on responsive images Classic: sizes=&#8221;100vw&#8221; everywhere (or missing completely). Result: Desktop browsers download 4K images for 800px containers \u2192 slow LCP + high data usage. Fix: Use realistic media queries: (max-width: 768px) 100vw, (max-width: 1200px) 50vw, 800px.<\/li>\n\n\n\n<li>Forgetting explicit width and height on remote images Classic: &lt;Image src=&#8221;https:\/\/&#8230;&#8221; fill \/&gt; with no dimensions. Result: Fallback to 0\u00d70 \u2192 huge layout shift on load. Fix: Always provide width\/height or use static import.<\/li>\n\n\n\n<li>Applying next\/image to icons, SVGs, logos or tiny assets (&lt;10 KB) Classic: Wrapper + placeholder logic on 32\u00d732 SVG icon. Result: Unnecessary hydration cost + rasterization of vectors. Fix: Use unoptimized or switch to plain &lt;img&gt; (see our earlier section on when NOT to use next\/image).<\/li>\n\n\n\n<li>Overriding quality too low without visual testing Classic: quality={40} globally because \u201csmaller is better\u201d. Result: Blurry images on high-DPI screens \u2192 poor user experience. Fix: Default 75, lower selectively and test visually on real devices.<\/li>\n\n\n\n<li>Not setting minimumCacheTTL for static\/near-static images Classic: Leaving default 60s TTL. Result: Repeated origin fetches \u2192 higher costs + slower TTFB for repeat visitors. Fix: Set minimumCacheTTL: 2592000 (30 days) in next.config.js for cached assets.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">For a broader list of Next.js-specific performance mistakes (including but not limited to images), check our existing article: <a href=\"https:\/\/pagepro.co\/blog\/common-nextjs-mistakes-core-web-vitals\/\" target=\"_blank\" rel=\"noreferrer noopener\">Common Next.js Mistakes That Kill Core Web Vitals<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And for a live walkthrough of many of these issues (including before\/after metrics), watch the video: Fixing Real Performance Issues in Next.js  <\/p>\n\n\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"lyte-wrapper fourthree\" style=\"width:420px;max-width:100%;margin:5px;\"><div class=\"lyMe\" id=\"WYL_UCrWwfF63Ug\"><div id=\"lyte_UCrWwfF63Ug\" data-src=\"\/\/i.ytimg.com\/vi\/UCrWwfF63Ug\/hqdefault.jpg\" class=\"pL\"><div class=\"tC\"><div class=\"tT\"><\/div><\/div><button tabindex=\"0\" class=\"play\"><\/button><div class=\"ctrl\"><div class=\"Lctrl\"><\/div><div class=\"Rctrl\"><\/div><\/div><\/div><noscript><a href=\"https:\/\/youtu.be\/UCrWwfF63Ug\" rel=\"nofollow\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i.ytimg.com\/vi\/UCrWwfF63Ug\/0.jpg\" alt=\"YouTube video thumbnail\" width=\"420\" height=\"295\" \/><br \/>Watch this video on YouTube<\/a><\/noscript><\/div><\/div><div class=\"lL\" style=\"max-width:100%;width:420px;margin:5px;\"><\/div><figcaption><\/figcaption><\/figure>\n\n\n<p class=\"wp-block-paragraph\">Fix the top 3\u20134 from this list and you\u2019ll usually see the biggest CWV jump. The rest are polish.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"final-thoughts-when-next-image-is-worth-it-and-when-its-not\">Final Thoughts: When next\/image Is Worth It \u2014 and When It\u2019s Not<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">After all the patterns, checklists, benchmarks, and gotchas covered in this guide, one truth stands above everything else in 2026:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">next\/image is an excellent tool \u2014 but it is <strong>not<\/strong> a performance silver bullet, and it is <strong>not<\/strong> the right choice for every image on your site.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It shines brightest when used deliberately on the right assets, with correct layout constraints, sizing, and loading strategy. When misused or over-applied, it can introduce CLS, INP regressions, hydration overhead, bundle bloat, and even higher bandwidth costs than plain [image] would have caused.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"when-next-image-is-worth-it-use-it-confidently\"><span class=\"underline-accent\">When next\/image Is Worth It (Use It Confidently)<\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Any content image that is:\n<ul class=\"wp-block-list\">\n<li>Above the fold or likely LCP candidate (hero banners, product main images, featured visuals)<\/li>\n\n\n\n<li>Served remotely (CMS, S3, external providers) \u2014 automatic format negotiation + resizing saves massive effort<\/li>\n\n\n\n<li>Large enough to benefit from AVIF\/WebP conversion and responsive variants (generally &gt; 20\u201330 KB)<\/li>\n\n\n\n<li>Part of lists or grids where lazy loading + blur-up placeholder improves perceived performance<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>When your team wants to:\n<ul class=\"wp-block-list\">\n<li>Eliminate manual srcset\/sizes boilerplate<\/li>\n\n\n\n<li>Guarantee modern format delivery without polyfills<\/li>\n\n\n\n<li>Prevent basic CLS from missing dimensions (when you actually supply them correctly)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">In short: next\/image is worth it for <strong>most content\/media images<\/strong> in modern Next.js apps \u2014 especially if you follow the sizing, fill, and preloading rules from earlier sections.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"when-next-image-is-not-worth-it-skip-or-unoptimize\"><span class=\"underline-accent\">When next\/image Is Not Worth It (Skip or Unoptimize)<\/span><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Icons, logos, favicons, small UI graphics (&lt;10\u201315 KB)<\/li>\n\n\n\n<li>Pure vector SVGs (next\/image rasterizes them \u2192 loses sharpness + adds overhead)<\/li>\n\n\n\n<li>Animated GIFs or APNGs (animation often breaks unless unoptimized)<\/li>\n\n\n\n<li>Tiny decorative spacers, 1\u00d71 trackers, or placeholder blanks<\/li>\n\n\n\n<li>Cases where you need pixel-perfect control or no wrapper divs (e.g., inline in markdown content)<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">In these situations, plain [image] (with loading=&#8221;lazy&#8221; where appropriate) or even CSS background-image is usually lighter, faster, and simpler.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Quick decision rule (copy-paste for team docs):<\/strong> If the image is:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Content-focused, &gt;20 KB, benefits from responsive formats \u2192 use next\/image<\/li>\n\n\n\n<li>UI\/decorative, &lt;10 KB, vector, animated, or needs zero overhead \u2192 use [image] or unoptimized<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"bottom-line\"><span class=\"underline-accent\">Bottom Line<\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Performance is never about one component \u2014 it\u2019s systemic.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">next\/image can give you 30\u201370% payload reduction and better defaults when used correctly, but blind adoption (\u201creplace every img tag\u201d) is one of the most common ways teams accidentally hurt Core Web Vitals.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Measure before and after every major change. Profile real-user data (not just Lighthouse). And remember: the best optimization is often the one you don\u2019t need to do at all.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you\u2019re still chasing green scores or lower image bills after applying everything here, the root cause is rarely isolated to images \u2014 it\u2019s usually rendering modes, caching layers, client-side JavaScript volume, or routing patterns. Or <a href=\"https:\/\/pagepro.co\/contact\">contact us <\/a>for a free quick audit or consultation \ud83d\ude42<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks for reading \u2014 now go measure something.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>TL;DR \u2014 Key Takeaways The next\/image component was designed to fix most of these issues automatically \u2014 but in production, especially after Next.js 16 (released October 2025), many teams still see red CWV scores despite \u201cusing next\/image correctly.\u201d Why? Because the component is a powerful tool, not a silver bullet. Misuse (or over-reliance) creates regressions [&hellip;]<\/p>\n","protected":false},"author":30,"featured_media":22936,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"rop_custom_images_group":[],"rop_custom_messages_group":[],"rop_publish_now":"initial","rop_publish_now_accounts":[],"rop_publish_now_history":[],"rop_publish_now_status":"pending","footnotes":""},"categories":[660,659,318],"tags":[],"class_list":["post-22928","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-for-cto","category-next-js","category-web-development"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Next.js Image Component: Performance and CWV in Practice - Pagepro<\/title>\n<meta name=\"description\" content=\"Learn how next\/image affects Core Web Vitals. Avoid CLS &amp; LCP pitfalls, fix sizing and preloading mistakes, &amp; use Next.js images correctly\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/pagepro.co\/blog\/nextjs-image-component-performance-cwv\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Next.js Image Component: Performance and CWV in Practice - Pagepro\" \/>\n<meta property=\"og:description\" content=\"Learn how next\/image affects Core Web Vitals. Avoid CLS &amp; LCP pitfalls, fix sizing and preloading mistakes, &amp; use Next.js images correctly\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pagepro.co\/blog\/nextjs-image-component-performance-cwv\/\" \/>\n<meta property=\"og:site_name\" content=\"Pagepro\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/thisispagepro\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-06T13:25:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-12T14:47:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/pagepro.co\/blog\/wp-content\/uploads\/2026\/02\/React-Native-0.83-Zero-Breaking-Changes-2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"582\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Rafa\u0142 D\u0105browski\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rafa\u0142 D\u0105browski\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"18 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/pagepro.co\\\/blog\\\/nextjs-image-component-performance-cwv\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pagepro.co\\\/blog\\\/nextjs-image-component-performance-cwv\\\/\"},\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pagepro.co\\\/blog\\\/nextjs-image-component-performance-cwv\\\/\"},\"headline\":\"Next.js Image Component: Performance and CWV in Practice\",\"datePublished\":\"2026-02-06T13:25:30+00:00\",\"dateModified\":\"2026-11-12T14:47:37+00:00\",\"inLanguage\":\"en-US\",\"breadcrumb\":{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pagepro.co\\\/blog\\\/nextjs-image-component-performance-cwv\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\\\/\\\/pagepro.co\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Web Dev\",\"item\":\"https:\\\/\\\/pagepro.co\\\/blog\\\/category\\\/web-development\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Next.js Image Component: Performance and CWV in Practice\"}]},\"publisher\":{\"@id\":\"https:\\\/\\\/pagepro.co\\\/#organization\"},\"description\":\"Learn how next\\\/image affects Core Web Vitals. Avoid CLS & LCP pitfalls, fix sizing and preloading mistakes, & use Next.js images correctly\",\"articleSection\":\"Web Dev\",\"wordCount\":3778,\"image\":{\"@id\":\"https:\\\/\\\/pagepro.co\\\/blog\\\/nextjs-image-component-performance-cwv\\\/#primaryimage\"},\"author\":{\"@id\":\"https:\\\/\\\/pagepro.co\\\/blog\\\/author\\\/rafal_dabrowski\\\/#person\",\"name\":\"Rafa\u0142 D\u0105browski\"}},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/pagepro.co\\\/#organization\",\"name\":\"Pagepro\",\"url\":\"https:\\\/\\\/pagepro.co\\\/\",\"foundingDate\":\"2016-02-27\",\"description\":\"Pagepro is a website replatforming and headless CMS migration agency. We move content-heavy websites to Next.js and Sanity, take over unfinished and AI-built Next.js projects, and provide continuous development and support.\",\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/pagepro.co\\\/#logo\",\"url\":\"https:\\\/\\\/pagepro.co\\\/assets\\\/svg\\\/pagepro-full-color.svg\",\"width\":300,\"height\":132,\"caption\":\"Pagepro\"},\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/company\\\/pagepro\\\/\",\"https:\\\/\\\/x.com\\\/pagepro_agency\",\"https:\\\/\\\/www.facebook.com\\\/thisispagepro\",\"https:\\\/\\\/www.instagram.com\\\/pagepro_\\\/\",\"https:\\\/\\\/www.youtube.com\\\/@Pagepro_agency\",\"https:\\\/\\\/clutch.co\\\/profile\\\/pagepro\",\"https:\\\/\\\/www.sanity.io\\\/agency-partners\\\/pagepro\",\"https:\\\/\\\/github.com\\\/Pagepro\"],\"knowsAbout\":[\"Website replatforming\",\"Headless CMS migration\",\"Website and CMS migration\",\"Next.js development\",\"Sanity CMS development\",\"Headless CMS architecture\",\"AI-built application takeover\",\"Next.js support and maintenance\",\"Web application development\",\"React development\",\"React Native development\",\"Team augmentation\"],\"areaServed\":[{\"@type\":\"Country\",\"name\":\"United Kingdom\"},{\"@type\":\"Country\",\"name\":\"United States\"},{\"@type\":\"Country\",\"name\":\"Poland\"}],\"subOrganization\":[{\"@id\":\"https:\\\/\\\/pagepro.co\\\/#ltd\"},{\"@id\":\"https:\\\/\\\/pagepro.co\\\/#spzoo\"}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Next.js Image Component: Performance and CWV in Practice - Pagepro","description":"Learn how next\/image affects Core Web Vitals. Avoid CLS & LCP pitfalls, fix sizing and preloading mistakes, & use Next.js images correctly","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/pagepro.co\/blog\/nextjs-image-component-performance-cwv\/","og_locale":"en_US","og_type":"article","og_title":"Next.js Image Component: Performance and CWV in Practice - Pagepro","og_description":"Learn how next\/image affects Core Web Vitals. Avoid CLS & LCP pitfalls, fix sizing and preloading mistakes, & use Next.js images correctly","og_url":"https:\/\/pagepro.co\/blog\/nextjs-image-component-performance-cwv\/","og_site_name":"Pagepro","article_publisher":"https:\/\/www.facebook.com\/thisispagepro","article_published_time":"2026-02-06T13:25:30+00:00","article_modified_time":"2026-11-12T14:47:37+00:00","og_image":[{"width":1024,"height":582,"url":"https:\/\/pagepro.co\/blog\/wp-content\/uploads\/2026\/02\/React-Native-0.83-Zero-Breaking-Changes-2.png","type":"image\/png"}],"author":"Rafa\u0142 D\u0105browski","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Rafa\u0142 D\u0105browski","Est. reading time":"18 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pagepro.co\/blog\/nextjs-image-component-performance-cwv\/#article","isPartOf":{"@id":"https:\/\/pagepro.co\/blog\/nextjs-image-component-performance-cwv\/"},"mainEntityOfPage":{"@id":"https:\/\/pagepro.co\/blog\/nextjs-image-component-performance-cwv\/"},"headline":"Next.js Image Component: Performance and CWV in Practice","datePublished":"2026-02-06T13:25:30+00:00","dateModified":"2026-11-12T14:47:37+00:00","inLanguage":"en-US","breadcrumb":{"@type":"BreadcrumbList","@id":"https:\/\/pagepro.co\/blog\/nextjs-image-component-performance-cwv\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/pagepro.co\/blog\/"},{"@type":"ListItem","position":2,"name":"Web Dev","item":"https:\/\/pagepro.co\/blog\/category\/web-development\/"},{"@type":"ListItem","position":3,"name":"Next.js Image Component: Performance and CWV in Practice"}]},"publisher":{"@id":"https:\/\/pagepro.co\/#organization"},"description":"Learn how next\/image affects Core Web Vitals. Avoid CLS & LCP pitfalls, fix sizing and preloading mistakes, & use Next.js images correctly","articleSection":"Web Dev","wordCount":3778,"image":{"@id":"https:\/\/pagepro.co\/blog\/nextjs-image-component-performance-cwv\/#primaryimage"},"author":{"@id":"https:\/\/pagepro.co\/blog\/author\/rafal_dabrowski\/#person","name":"Rafa\u0142 D\u0105browski"}},{"@type":"Organization","@id":"https:\/\/pagepro.co\/#organization","name":"Pagepro","url":"https:\/\/pagepro.co\/","foundingDate":"2016-02-27","description":"Pagepro is a website replatforming and headless CMS migration agency. We move content-heavy websites to Next.js and Sanity, take over unfinished and AI-built Next.js projects, and provide continuous development and support.","logo":{"@type":"ImageObject","@id":"https:\/\/pagepro.co\/#logo","url":"https:\/\/pagepro.co\/assets\/svg\/pagepro-full-color.svg","width":300,"height":132,"caption":"Pagepro"},"sameAs":["https:\/\/www.linkedin.com\/company\/pagepro\/","https:\/\/x.com\/pagepro_agency","https:\/\/www.facebook.com\/thisispagepro","https:\/\/www.instagram.com\/pagepro_\/","https:\/\/www.youtube.com\/@Pagepro_agency","https:\/\/clutch.co\/profile\/pagepro","https:\/\/www.sanity.io\/agency-partners\/pagepro","https:\/\/github.com\/Pagepro"],"knowsAbout":["Website replatforming","Headless CMS migration","Website and CMS migration","Next.js development","Sanity CMS development","Headless CMS architecture","AI-built application takeover","Next.js support and maintenance","Web application development","React development","React Native development","Team augmentation"],"areaServed":[{"@type":"Country","name":"United Kingdom"},{"@type":"Country","name":"United States"},{"@type":"Country","name":"Poland"}],"subOrganization":[{"@id":"https:\/\/pagepro.co\/#ltd"},{"@id":"https:\/\/pagepro.co\/#spzoo"}]}]}},"_links":{"self":[{"href":"https:\/\/pagepro.co\/blog\/wp-json\/wp\/v2\/posts\/22928","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pagepro.co\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pagepro.co\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pagepro.co\/blog\/wp-json\/wp\/v2\/users\/30"}],"replies":[{"embeddable":true,"href":"https:\/\/pagepro.co\/blog\/wp-json\/wp\/v2\/comments?post=22928"}],"version-history":[{"count":21,"href":"https:\/\/pagepro.co\/blog\/wp-json\/wp\/v2\/posts\/22928\/revisions"}],"predecessor-version":[{"id":25083,"href":"https:\/\/pagepro.co\/blog\/wp-json\/wp\/v2\/posts\/22928\/revisions\/25083"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pagepro.co\/blog\/wp-json\/wp\/v2\/media\/22936"}],"wp:attachment":[{"href":"https:\/\/pagepro.co\/blog\/wp-json\/wp\/v2\/media?parent=22928"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pagepro.co\/blog\/wp-json\/wp\/v2\/categories?post=22928"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pagepro.co\/blog\/wp-json\/wp\/v2\/tags?post=22928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}