{"id":1981,"date":"2021-12-15T08:05:11","date_gmt":"2021-12-15T08:05:11","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/magento-2-speed-optimization-steps\/"},"modified":"2025-12-16T16:21:16","modified_gmt":"2025-12-16T10:51:16","slug":"magento-2-speed-optimization-steps","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/magento-2-speed-optimization-steps\/","title":{"rendered":"10 Best Steps for Magento 2 Speed Optimization [2026]"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Is your Magento 2 store annoyingly slow? Is your online Magento store taking too much time to load? If so, then it\u2019s time to optimize your Magento 2 store. Most of the time, it is straightforward to speed up Magento 2 with some technical know-how. Here are the complete details and steps for&nbsp;<em><strong>Magento 2 Speed Optimizatio<\/strong><strong>n<\/strong><\/em>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Website loading speed plays a crucial role in running an online business. Since 2018\u2019s speed update, Google has considered&nbsp;website loading speed&nbsp;as one of its ranking factors.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u201cSpeed is now a landing page factor for Google Search and Ads,\u201d says&nbsp;<a href=\"https:\/\/developer.chrome.com\/blog\/search-ads-speed\/#speed_is_now_a_landing_page_factor_for_google_search_and_ads_2\" target=\"_blank\" rel=\"noreferrer noopener\">Google<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">According to Google, people who have a slow experience on your website are less likely to purchase from your store in the future.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Good website performance and loading speed can also add to the user experience. A swiftly loading Magento 2 store can help you win visitors\u2019 loyalty and improve the conversion rate. It is also highly important to&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/speed-up-magento-2-admin-panel\/\" target=\"_blank\" rel=\"noreferrer noopener\">Speed Up Magento 2 Admin Panel<\/a>&nbsp;to improve store performance and loading speed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Therefore, it becomes essential to speed up Magento 2 store to improve customer experience and search engine rankings.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"10beststepsformagento2speedoptimization\">10 Best Steps for Magento 2 Speed Optimization [2026]<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Magento 2 is a robust and smooth eCommerce platform. Still, various factors can add to the slow loading speed of the Magento 2 store, such as inappropriate extensions, misconfiguration, outdated versions, etc.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The excellent part is that Magento 2 store can quickly speed optimized for better performance with just a little technical know-how. Here, we have provided the best ten steps for Magento optimization that Magento store owners can practice to tweak their store\u2019s performance to the optimum level.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step1upgradeyourmagentostore\">Step 1: Upgrade Your Magento Store<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Old and outdated versions of Magento may contain many unknown bugs that may slow down your store. It is imperative to keep your Magento store updated with the latest Magento version for optimum performance.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">All your Magento 2 speed optimization efforts would be useless if you still run an older version of Magento. Therefore, updating your Magento store would be your first step toward your Magento speed optimization goal. Also have a look at&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/magento-website-audit-checklist\/\">audit checklist for website<\/a>&nbsp;to make your website perform well in all possible ways.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Go to the Magento admin, and check the version from the dashboard, as shown in the screenshot below. You\u2019ll receive a notification via the bell icon in the top-right corner if any updates are available. Learn here to&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/how-to-upgrade-magento-2-to-latest-version\/\" target=\"_blank\" rel=\"noreferrer noopener\">upgrade Magento 2 version<\/a>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/03\/1_Dashboard.png\" alt=\"1_Dashboard\" class=\"wp-image-4560\"\/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\">Step 2: Choose the Right Hosting<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Hosting plays a vital role in the performance of your Magento store. Opt for a standard hosting plan for your Magento store rather than a cheap web hosting plan.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Magento requires specific technical prerequisites such as PHP, Web Servers, etc. Not all web hosting providers can fulfill all the requirements, resulting in a slow, unresponsive site.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The dark side of a cheap and shared hosting plan is that the records of their downtime are abysmal. A standard and dedicated hosting provider can ensure minimum to zero downtime and concurrent technical support.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step3inspectthirdpartyextensions\">Step 3: Inspect Third-Party Extensions<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Third-Party Magento extensions are great when it comes to extending the functionalities of your store. However, many poorly coded third-party extensions can go against the performance of your Magento store.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Therefore, it is essential to ensure none of your third-party extensions is putting a load on your Magento 2 store speed. You might be wondering how to do that. Disable a third-party module that looks suspicious and analyze your website speed. If you witness a considerable amount of improvement in your Magento 2 performance, contact the extension\u2019s developer and get the issue fixed.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step4enableelasticsearch\">Step 4: Enable Elastic Search<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Elastic Search is the built-in functionality of Magento, which is open-source and provides an easy and convenient way to search through your Magento store. Using Elastic Search, users can easily find products and navigate the site.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Unlike other search functionality providers, Elastic Search can work in diverse ecosystems and handle analytical queries more efficiently, improving the Magento 2 store performance.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Moreover, Elastic Search also comes with an auto-fill option that can show relevant products even before the user completes typing his full query. This experience makes your customers feel the speed while navigating through your store.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Alternately, you can also use OpenSearch as the primary engine when you want to <a href=\"https:\/\/meetanshi.com\/blog\/magento-2-database-optimization-steps\/\" target=\"_blank\" rel=\"noreferrer noopener\">optimize your Magento 2 database<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step5cleardatabaselogs\">Step 5: Clear Database Logs<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Magento generates database logs for various entries by default that can add up to the store\u2019s loading speed. Sometimes, the logs can occupy hundreds and thousands of MBs in your server and thus can reduce the server\u2019s processing speed, and in some cases, it may also make the website unresponsive.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That is why cleaning the Magento database logs on time is essential to keep the server clean and improve Magento 2 speed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks to the cron job functionality of Magento 2! You can easily&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/set-up-custom-cron-job-in-magento-2\/\" target=\"_blank\" rel=\"noreferrer noopener\">create a custom cron job in Magento 2<\/a>&nbsp;that can clear the database logs regularly or&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/dynamically-schedule-cron-job-in-magento-2-system-configuration\/\" target=\"_blank\" rel=\"noreferrer noopener\">dynamically schedule a cron job in Magento 2 system configuration<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step6runinproductionmode\">Step 6: Run in Production Mode<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Three Magento modes were introduced along with Magento 2, making it easier for the developers and store owners to work efficiently. The production mode is designed for live sites for optimum performance and user experience.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The production mode uses full-page caching and a built-in pub folder resulting in a smooth and swift user experience with improved&nbsp;<a href=\"https:\/\/www.hostinger.com\/tutorials\/speed-up-wordpress\" target=\"_blank\" rel=\"noreferrer noopener\">website loading speed<\/a>. Switch your Magento 2 store to production mode for an optimum and flawless user experience.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em><strong>In the root directory of Magento 2, run the following command:<\/strong><\/em><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd mymagentostore.com\/html<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Verify the current mode by using the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/magento deploy:mode:show<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Switch to production mode by using the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/magento deploy:mode:set production<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 7:&nbsp; Implement Varnish Cache<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Another clever technical step for Magento 2 speed optimization is using a Varnish cache on your Magento store. It is an open-source web application that accelerates the server response by caching HTTP reverse proxy. It is super fast and can typically pace the delivery with a factor of 300-1000x.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Implementing Varnish cache on your Magento 2 site will boost the HTTP traffic and drastically improve the server response. It caches the responses directly into the RAM and prioritizes them to be processed blazing-fast whenever requested. Enable Varnish Cache in Magento 2 to transfer much more traffic without load speed losses. In production mode, the option will take over caching of most of the website content.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step8useflatcatalogindexing\">Step 8: Use Flat Catalog Indexing<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A flat catalog is another excellent method to improve Magento 2 performance. It uses just one table to combine the data, which can be retrieved using a single query at any time. Therefore, it reduces the number of queries and improves the Magento 2 store performance.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can easily switch to&nbsp;<strong>Flat catalog&nbsp;<\/strong>by going to&nbsp;<strong>System &gt; Configuration &gt; Catalog &gt; Frontend&nbsp;<\/strong>and changing the&nbsp;<strong>Use Flat Catalog Category&nbsp;<\/strong>to \u201cYes\u201d.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/03\/2_Set-Flat-Categories-and-Products.png\" alt=\"2_Set Flat Categories and Products\" class=\"wp-image-4561\"\/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\">Step 9: Minify JS\/CSS Files<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Bulky Javascript and CSS files are two of the major culprits behind the slow loading speed of a website. Long codes can add load to the browser processing and rendering speed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">JS\/CSS modification refers to removing the unnecessary and redundant codes from the Javascript &amp; CSS, thereby decreasing site loading time. Another way to speed up Magento 2 store is to merge multiple scripts to reduce the number of HTTP requests.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Magento 2 has a built-in function to&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/enable-merge-css-javascript-in-magento-2\/\" target=\"_blank\" rel=\"noreferrer noopener\">merge and minify CSS &amp; JavaScript<\/a>. Go to&nbsp;<strong>Stores &gt; Configuration &gt; Advanced &gt; Developer &gt; JavaScript Settings&nbsp;<\/strong>and configure the following settings:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/03\/3_Advance-JavaScript-and-CSS.png\" alt=\"3_Advance JavaScript and CSS\" class=\"wp-image-4562\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Also, expand the&nbsp;<strong>CSS Settings&nbsp;<\/strong>and configure the following options:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/03\/4_CSS-Settings.png\" alt=\"4_CSS Settings\" class=\"wp-image-4563\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 10: Re-index Products on Your Store<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Magento comes with the built-in functionality of indexers to produce and present the data in the front end. There is no need to run complex commands and MySQL queries for that.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However, some products may not appear in the front end if they are not indexed properly. Therefore, re-indexing them becomes essential to bring all the scattered data into one table to improve the performance of the Magento store.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Magento admin can efficiently perform the re-indexing by heading toward the&nbsp;<strong>index management<\/strong>&nbsp;panel under the&nbsp;<strong>system&nbsp;<\/strong>tab of the admin panel.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"additional-steps-to-speed-up-magento-2\">Additional Tips to Speed Up Magento 2<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In addition to the above ten best steps for Magento 2 speed optimization, here are some tips you can follow to add an extra boost to your Magento 2 store speed:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Set Up a Content Delivery Network<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Add HTTPS URLs from&nbsp;<strong>Stores &gt; Configuration &gt; General &gt; Web &gt; Base URLs (Secure)&nbsp;<\/strong>as shown below:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2019\/03\/5_Set-up-Content-Delivery-Network.png\" alt=\"5_Set up Content Delivery Network\" class=\"wp-image-4564\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Theme &amp; Images Optimization<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">For an optimum Magento 2 speed, it is advisable to use a lightweight theme. Also, make sure to use compressed images of optimum size. PNG or SVG file format is ideal for the logo, while JPG is ideal for other images.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Alternatively, you can use lightweight themes such as&nbsp;<a href=\"https:\/\/meetanshi.com\/hyva-theme-development-service\">Hyv\u00e4&nbsp;Magento<\/a> for a faster front end.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Check 3rd-Party Extensions for Bugs<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Ensure that the 3rd party extensions installed in the store are bug-free and not affecting your store speed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If your store is running slow, uninstall each third-party extension to measure the impact on the store\u2019s speed. Find and fix extensions that are causing the issues.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"conclusion\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Magento is a robust and flexible eCommerce platform that store owners can configure per their requirements. Speeding up Magento 2 store can help store owners achieve higher search engine ranks and improve the user experience.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here are the ten best steps you can follow for Magento 2 Speed Optimization to make your online store load blazing-fast in 2026. Moreover, you can also contact us to <a href=\"https:\/\/meetanshi.com\/magento-speed-optimization-service.html\">optimize Magento 2 performance<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Follow these steps to speed up Magento 2 store, also you can follow the given&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/magento-website-maintenance-tips\/\">Magento website maintenance tips<\/a>&nbsp;and boost your website and share your experiences in the comment below. Also, do not forget to share these fantastic tips to speed up Magento 2 store with the Magento community via social media.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Is your Magento 2 store annoyingly slow? Is your online Magento store taking too much time to load? If so, then it\u2019s time to optimize&#8230;<\/p>\n","protected":false},"author":32,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[34,5869],"tags":[],"class_list":["post-1981","post","type-post","status-publish","format-standard","hentry","category-magento","category-hyva-themes"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1981","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/32"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=1981"}],"version-history":[{"count":7,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1981\/revisions"}],"predecessor-version":[{"id":24974,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1981\/revisions\/24974"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=1981"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=1981"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=1981"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}