Free auditStart free
GuideAdobe Commerce · Performance

Magento page speed optimization

Improve Adobe Commerce storefront speed with real-user data, correct full-page caching, and targeted catalog or front-end fixes.

5 min
read
8
sources
Oct 24, 2026
updated
Scaplet Editorial Team
author
In one line

Start with real-user Core Web Vitals, then test representative product, category, and CMS pages to find the slow metric. Adobe Commerce on-premises can use Varnish for full-page caching; Commerce on Cloud uses Fastly. Confirm your architecture before changing cache settings, and verify headers and shopper interactions after each fix.

30-second check

Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
01Use each measurement for the question it answers

Find the page group and metric with real users

Use field data to decide what to fix, then use a controlled lab test to investigate. Google's web.dev guidance recommends judging Core Web Vitals at the 75th percentile of page loads, segmented across mobile and desktop; a single Lighthouse run is useful for debugging but does not represent every shopper. Compare product pages with product pages and mobile with mobile. A category template, a configurable product, and a campaign landing page can have different bottlenecks even on the same store.
Source

Search Console Core Web Vitals or CrUX

Best use
Find field performance patterns across real visits
Limit
Grouped or origin data may not isolate one code change
Source

PageSpeed Insights

Best use
Compare field data with a reproducible Lighthouse trace
Limit
A lab run uses simulated conditions
Source

Browser performance tools and server logs

Best use
Trace a specific request, script, image, or backend response
Limit
One URL or session may not represent the whole catalog
  • Choose a homepage, category, simple product, configurable product, and the slowest important entry page.
  • Record device, URL, template, date, cache state, and the metric before changing code or configuration.
  • Check the actual LCP element and main-thread tasks instead of optimizing a generic score.
  • Use the page-level diagnostics for poor LCP, poor INP, and poor CLS.
02How it works

Check the deployment and caching layer

Adobe Commerce has application caches, full-page HTTP caching, and static asset caching. These layers are configured separately. Adobe recommends Varnish for full-page caching on on-premises deployments; Adobe Commerce on Cloud infrastructure uses Fastly for edge and full-page caching, not a separately managed Varnish service. Do not apply an on-premises Varnish procedure to a Cloud project.
  1. 01

    Identify the deployment

    Confirm whether the storefront uses Adobe Commerce on-premises, Cloud infrastructure, Commerce as a Cloud Service, or a custom/headless front end. Cache ownership and available controls differ by architecture.

  2. 02

    Check production mode and static files

    Adobe's application modes page describes production mode as the mode for a production system, and says default mode is not optimized for production because of the performance cost of static files. In production mode, static files are not generated or cached on demand; you write them with bin/magento setup:static-content:deploy. On Cloud, Adobe says the application runs in production mode and mode changes in remote environments are restricted. Follow your version's deployment process rather than running deployment commands ad hoc on a live store.

  3. 03

    Inspect the full-page cache

    For on-premises deployments, Adobe's Varnish verification page says to check response headers with curl -I and look for X-Magento-Cache-Debug: MISS on the first request and HIT afterward. It says to use developer mode, because otherwise you will not see the headers, and that a cacheable page such as a category page should load in under 150 ms when Varnish works. For Cloud, inspect the Fastly cache behavior using the Cloud-specific tools and headers available to your project.

  4. 04

    Refresh only what is stale

    Adobe says clearing cache types during peak demand can increase load on the Admin and take the site down until the operation completes. It recommends flushing during non-peak times and always flushing the cache after installing extensions or upgrading. Choose the cache type that matches the change.

03Use the trace to choose a targeted change

Fix the cause that matches the user-visible problem

Signal

Slow LCP

Inspect first
Largest product or hero image, response time, render-blocking CSS
Practical next step
Serve the correct responsive image size, prioritize the visible image, and remove unnecessary blocking work
Signal

Poor INP

Inspect first
Theme and extension JavaScript, long main-thread tasks
Practical next step
Profile the interaction, then defer or remove noncritical work only after confirming the dependency
Signal

High CLS

Inspect first
Images without reserved dimensions, fonts, late banners or widgets
Practical next step
Reserve space for content that loads later and check layout at common mobile widths
Signal

Slow category response

Inspect first
Cache misses, expensive custom blocks, catalog queries
Practical next step
Compare cacheable and uncached requests; profile the specific block or integration. Adobe recommends the Update on Schedule indexer mode for performance, since Update on Save can cause significant delays during high loads
Signal

Slow first visit to assets

Inspect first
Static deployment, CDN delivery, large bundles
Practical next step
Verify production static files and caching headers. Adobe does not recommend merging JS and CSS files, and says JS bundling is not recommended where first page load time is extremely critical

Adobe's performance guidance is deployment-specific: the Varnish, static content, and Admin settings on this page apply to the traditional Commerce application, and its storefront docs cover Edge Delivery Services separately. Treat cache, static content deployment, and storefront code recommendations as architecture-specific rather than interchangeable toggles. Adobe also says HTTP/2 can be an alternative to JS bundling and is enabled by default on Cloud infrastructure projects.

04How it works

Verify after release with shoppers' tasks

  1. 1

    Repeat the same measurement

    Use the same URLs, device conditions, and cache state as the baseline. Run multiple lab tests and compare the median; keep the field-data trend for real-user impact.

  2. 2

    Test purchase interactions

    Check variant selection, gallery zoom, filters, cart, checkout entry, consent prompts, and account controls on desktop and mobile. A faster score is not a fix if a shopper action stops working.

  3. 3

    Check cache correctness

    Verify that prices, stock, customer-specific content, and cart state remain correct. Caching must not show one shopper another shopper's session or stale inventory.

  4. 4

    Watch the affected template

    After deployment, monitor Core Web Vitals by page group and device. If the metric improves only in the lab, investigate whether the change shipped, the field sample is large enough, or another template is the real issue.

For the platform's other crawl and indexing controls, see the Adobe Commerce SEO guide. For metric definitions, see Core Web Vitals. Keep performance changes separate enough to trace their effect, and document the cache or theme change that produced it.

Questions

Asked a lot.

4 questions people ask next, answered from the sources on this page.

01Does Adobe Commerce use Varnish or Fastly?

Adobe recommends Varnish for on-premises full-page caching. Adobe Commerce on Cloud infrastructure uses Fastly for edge and full-page caching, so follow the deployment-specific guide.

02How do I measure Magento Core Web Vitals?

Use Search Console or CrUX for field patterns and PageSpeed Insights or Lighthouse to debug representative URLs. Compare the same page type and device, and use repeated lab runs rather than one score.

03Should I flush all Magento caches to make the site faster?

No. Adobe says clearing cache types during peak demand can increase load on the Admin and take the site down until the operation completes. Flush after installing extensions or upgrading, and schedule it for non-peak hours.

04Does enabling JavaScript bundling always improve Magento speed?

No. Adobe says bundling reduces requests, but it is not recommended for stores where first page load time is extremely critical, because all JS content loads on the first call. Adobe also does not recommend merging JS and CSS files. Measure your theme and deployment first.

Sources · 8

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • adobe.com
  • google.com
  • web.dev
  1. 01Configuration best practices | Adobe Commerceexperienceleague.adobe.com · checked 2026-10-24
  2. 02Caching overview and configuration options | Adobe Commerceexperienceleague.adobe.com · checked 2026-10-24
  3. 03Application modes | Adobe Commerceexperienceleague.adobe.com · checked 2026-10-24
  4. 04Deploy static view files | Adobe Commerceexperienceleague.adobe.com · checked 2026-10-24
  5. 05Core Web Vitals and Google Search results | Google Search Centraldevelopers.google.com · checked 2026-10-24
  6. 06Web Vitals | web.devweb.dev · checked 2026-10-24
  7. 07Verify Varnish configuration | Adobe Commerce on Premexperienceleague.adobe.com · checked 2026-10-24
  8. 08Cache management | Adobe Commerceexperienceleague.adobe.com · checked 2026-10-24
Free · 2 minutes

Tools point. Agencies advise. This one ships.

Run the free audit, then approve the fixes. Every change can be undone.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane