Home Guides Magento 2 Page Speed Optimization: 10…
Guides

Magento 2 Page Speed Optimization: 10 Fixes That Work

Ahsan Saeed Ahsan Saeed
October 22, 2026
3 min read
Updated October 15, 2026
Magento 2 Page Speed Optimization: 10 Fixes That Work

For Magento 2 page speed optimization, start with the stack and configuration: use production mode, full-page caching with Varnish, Redis for cache and sessions, a current PHP version with OPcache and a CDN. Then work on the frontend, the theme, JavaScript, CSS, images and third-party extensions. Test your store pages with our free website speed test to see where to begin.

Key takeaways

  • Magento 2 needs more server resources and correct configuration than a simple site.
  • Full-page caching and production mode have the biggest effect on server response time.
  • The default frontend can be heavy, so theme choice, JavaScript and images matter.
  • Check the official Adobe Commerce or Magento documentation for the exact steps for your version.

Why is Magento 2 slow?

Magento 2 can be slow because of limited hosting resources, missing or misconfigured caching, developer mode on a live store, a heavy frontend with a lot of JavaScript, large images, many third-party extensions and indexers that are not set up correctly. Most problems come from configuration and extensions, not from the platform itself.

Layers of Magento 2 speed optimizationStart with the server stack, then Magento configuration, then the frontend theme and scripts, then extensions and images.Optimize from the bottom up4. Extensions and images3. Frontend: theme, JavaScript, CSS2. Magento configuration and caching1. Server stack: PHP, OPcache, Redis, VarnishTest after each layer
Fix the foundation first, then work upward through each layer.

How do you speed up Magento 2? 10 fixes

1. Test every page type

Test your home, category, product, cart and checkout pages on mobile with our free page speed checker. Note the largest issues.

2. Use production mode

A live store should run in production mode, not developer mode. Developer mode is slower. Check the official documentation for how to set the mode.

3. Enable full-page caching

Magento has a built-in full-page cache, and Varnish is commonly used for production stores. Check that it is on and working, and that pages are being served from cache.

4. Use Redis for cache and sessions

Redis can store the cache and sessions in memory, which reduces load on the database and files. Use it if your hosting supports it.

5. Use a current PHP version with OPcache

Use a PHP version supported by your Magento version, with OPcache enabled. See what a good TTFB is for server response targets.

6. Set indexers and cron correctly

Make sure cron runs and indexers are configured as recommended for your store, so pages and catalog data stay up to date without slowing visitors.

7. Review your theme and frontend

The default frontend loads a lot of JavaScript. Lighter themes and frontends exist, so consider whether yours fits your store. Reduce unused JavaScript and CSS, and use the built-in minify and merge options carefully. See render-blocking resources.

8. Optimize images

Resize, compress and use WebP, and do not lazy-load the main product image. See how to optimize images for page speed.

9. Audit your extensions

Remove extensions you do not use and test the effect of each one. Third-party extensions are a common cause of slow pages and checkout.

10. Use a CDN

A CDN serves static files and images from a location near each shopper.

What is a good Magento page speed?

Aim to pass Core Web Vitals on your key pages: LCP of 2.5 seconds or less, INP of 200 milliseconds or less and CLS of 0.1 or less (Google, web.dev). Check product and category pages first. See website performance metrics.

How is Magento speed different from other platforms?

Magento needs more server resources and tuning than simpler platforms. On WooCommerce you also manage hosting and plugins, as in our WooCommerce page speed optimization guide. On a hosted platform such as Shopify the server is managed for you. For general store advice, see ecommerce site speed.

Frequently asked questions

Why is my Magento 2 checkout slow?

Checkout is not cached, so it depends on server speed, extensions and scripts. Check hosting resources, payment and shipping extensions and tracking scripts.

Do I need Varnish for Magento 2?

Many production stores use it because it speeds up full-page caching. Check the documentation and your host’s recommendations.

Does Magento 2 need special hosting?

It needs enough CPU, memory and a suitable stack. Underpowered hosting is a common cause of slow stores.

Can a developer fix Magento speed quickly?

Some fixes are quick, such as enabling caching and removing extensions. Deeper frontend changes take longer.

How often should I test my store?

Test after every extension, theme or upgrade change, and at least once a month.

Conclusion

Magento 2 speed comes from the right stack, correct caching, a lean frontend and carefully chosen extensions. Start with our free website speed test and follow our guide on how to improve website speed.

Share:
Ahsan Saeed
Written by
Ahsan covers the latest in consumer technology, breaking down new gadget releases, product launches, and industry news into clear, easy-to-follow coverage. With a keen eye on emerging tech trends, he helps readers stay up to date on what's new and what's actually worth paying attention to.
← Previous PageSpeed Insights Alternatives: Free Tools Compared
Scroll to Top