10 Top Tips to Speed up Your Magento Site Performance at the Drop of a Hat

Updated on 31 January 2022 9 min Read

Can you remember the times when owning a magnificent website was such a luxury? Well, there were a few worthy websites. All of them had a prehistoric design, (mostly in blue or gray shades) and uncomfortable fonts. Needless to say, the owners of these projects knew nothing about user-friendly navigation and other convenient aspects. Still, these poorly created sites were extremely popular. Why is that? The answer is simple: there were no alternatives at all. Back in our days, now your prospect can just open Google and see an unbelievable variety of attractive websites. For these simple reasons, you should do your best to stand out from the crowd. Given these points, today we have for you top 10  tips to speed up the performance of your website. To add to this, today we will focus on the online projects based on Magento. So, are you ready to impress your visitors?

1st tip to speed up your Magento site: caching utilization

Being the owner of a Magento based website, you may already know that it contains in-built caching modules. On the other hand, we are here to improve what you have. So, there are third party solutions to help you. Before everything else, you need to make sure that all the existing cache types are enabled this way: ‘System’ – ‘Cache Management’. In case, they are, let’s move to browser caching.

Here is another step, which influences the speed of your Magento website. Below you can see the pieces of code. These are the snippets that you should add to your .htaccess file. As you may know, the Magento 2 ships with an .htaccess file named .htaccess.sample. Needless to say, you can use it for caching utilization. Keep in mind that you can use the snippets below for an older Magento version as well, the only thing is that you may need to add them manually.

IfModule-mod-deflate

To make the long story short, page caching has always been the most beneficial way to improve website speed. That is why these days you can see so many extensions that help to perform page caching. Even then, how can you do it by yourself?

Another important aspect that you should consider is paying attention to the expire headers. Why do we need them? Basically, these headers inform browsers when it should request a needed file from the server. They also work to tell the browser to take the files from cache. As a result, a visitor doesn’t need to wait until the website is loaded again. If a person has ever entered your site before, everything will appear from the cache rapidly. That is how you may speed up your Magento site by activating expire headers.

ifModule-mod_expires

2nd tip to speed up your Magento site: Search Engines Optimization

The next step that will surely speed any Magento site is SEO. This clever system allows all the search engines to notice your online project. Unquestionably, it will result in followers result in audience growth and better traffic flow but how it improves your speed? The fact is that SEO mostly depends on the speed of your online project. It is important to have good website speed in order to get the best results through SEO. What should you do if you know nothing about coding?

These days the handy ready-made templates are really popular. Actually, pretty big players use them. Therefore, there is a rich variety of feature-rich templates including Magento themes. To say more, they come with multiple stylish and must-have features.

3rd tip to speed up your Magento site: AMP

AMP means Accelerated Mobile Pages. Originally, these are the HTML pages that were made to provide your online project with extremely fast mobile pages. Well, statistics say that more than a half of all traffic relates to mobiles. Therefore, now it is important to have a thoroughly created mobile version of your site. AMP are lightweight, so they can speed your Magento site at the drop of a hat. All in all, there are a lot of things that AMP use to make your mobile content so fast. For example, they want you to use a streamlined version of CSS. Furthermore, you are not able to use JavaScript. Obviously, there are some pre-packed files that include JavaScript library.

To sum everything up, AMP is your modern way to get faster mobile pages. That is why we recommend you to use Accelerated Mobile Pages for your website no matter what it is about. Remember we have told you about the ready-to-use Magento themes? So, there are also AMP-ready templates. To illustrate, here is Fashion Slash. Just open the demo to see how all the elements work in action.

AMP

4th tip to speed up your Magento site: optimize your images

To start with, let’s take a closer look at these numerals. The thing is that today almost 60% of the website’s weight relates to images. Seeing that, you can be sure that image optimization will quickly speed up your Magento site. To make a long story short, it decreases download time of your pictures. How can you optimize your images? First of all, you can simply compress them with the help of PhotoShop. There are a lot of video tutorials you can see. Secondly, the internet is full of multiple extensions that can help you. They do everything automatically, which means that you do not need to have some special skills. Some of these extensions are:

  • Compressor Extension
  • GTspeed
  • TinyPNG Extensions

In addition, Magento 2 themes come with Image Optimizer that will help one to optimize their images without trouble.

5th tip to speed up your Magento site: useless extensions and modules

It is not a secret that modern webspace is full of multiple bright extensions and attractive modules. The thing is that the more extensions you run the more HTTP requests your website has. That is why AMP does not allow you to use additional JavaScript files. They load for too long. For these reasons, we recommend you to use as few extensions as you can. Undeniably, this tip sounds simple but that is how everything works. The same thing is with your modules. How can you disable them? It’s as easy as ABC.

  • To begin with, navigate to ‘Stores’;
  • Secondly, to ‘Configuration’;
  • Thirdly to ‘Advanced’;
  • Next, find the modules you want to disable and select the needed function;
  • Finally, don’t forget to save configurations.

See the screenshot below!

6th tip to speed up your Magento site: use PHP accelerators

What else should you know to speed up your Magento site? There are only two words: PHP accelerator. To make a long story short, this is a clever form of caching. Basically, PHP accelerators were made to increase the performance of your PHP scripts. Without a doubt, it will make your website work faster because PHP accelerator simply caches your scripts in their compiled state. Here are some popular PHP accelerators you may use.

  • Xcache
  • APC
  • eAccelerator
  • ZendOptimizer+

7th tip to speed up your Magento site: just enable Magento compilation

If you are a happy owner of Magento 2 website, you probably know what compilation is. The thing is that this feature makes your online project load nearly 50% faster. Sounds great, doesn’t it? In a word, every single time your pages load Magento’s application files are searched in a particular order. As a result, you have multiple filesystem reads. For these simple reasons, compiler copies all such files into a new directory to reduce the reads. What is more, the most popular files also go to cache. Obviously, the process will speed up your website. Seeing that, are you ready to enable Magento compilation? Just follow the next steps.

  • Firstly, go to ‘System’ as always;
  • Secondly, go to ‘Tools’;
  • Thirdly, find there ‘Compilation’;
  • Fourthly, select ‘Run Compilation Process’

8th tip to speed up your Magento site: don’t forget to clean up your logs and database

Another thing that always works is cleaning. Normally, Magento keeps all the logs up to 180 days. Yep, that is cool because you can get the lost information easily. On the other hand, a huge amount of site’s logs will make your database growing with a lightning-fast speed. And we want it for your site, not for database, right? Therefore, we suggest you change the terms of logs keeping. For example, you can change it to a couple of weeks or something like this. All in all, this action will save your space and will speed up your Magento site at the same time. So, your actions will be:

  • Go to ‘Stores’ – ‘Configuration’ – ‘Advanced’;
  • Then navigate to ‘System’;
  • Find there ‘Log’;
  • There will be the field ‘Save Log, Days’ where you should change the default information to the needed amount;
  • As soon as you did, just save configurations.

9th tip to speed up your Magento site: concatenate your CSS and JavaScript files

In one of the previous points, we already said that the second version of Magento comes with pre-built files. Actually, they can speed up your site. One of these features allows you to merge all CSS and JavaScript files into one. As a result, the total number of HTTP requests will be reduced. With it, you have another way to speed up your Magento online project. That is what you need to do to make it load faster.

  • Traditionally, go to ‘System’;
  • Then navigate to ‘Advanced’ and ‘Developer’;
  • Next, find there ‘JavaScript Settings’ and ‘CSS Settings’;
  • To finish with, just click on ‘Yes’ and save everything.
  • Finally, clear your cache when the files are combined. Now you know how to do it.

By the way, Magento 2 additionally allows you to concatenate JS and CSS. What is more, you can also minify your JS and CSS. The good thing is that you don’t need to have any additional extensions for it. Magento 2 lets its owner perform all the actions using only dashboard.

10th tip to speed up your Magento site: enable flat catalog

As you may know, Magento works with entity attribute value model. It allows storing customer and product data. Thus, we recommend you to enable flat catalog, which comes for products and categories. With it, you will merge product data into one table, which can make MySQL responds faster. As a result, you will speed up your Magento 2 without a hitch. In the end, the more products you have, the more benefits you will get. Would you like to speed up your site?

  • So, to enable flat catalog you need to navigate to ‘Stores’;
  • As soon as you did, go to ‘Configuration’ and ‘Catalog’;
  • Find there ‘Use Flat Catalog Category’ and ‘Use Flat Catalog Product’ fields;
  • Select ‘Yes’ under ‘Storefront’.
  • Now you can save configurations and clear the cache.

To end with, we suggest you delete all the files from /var/cache directory.

So, these were all the tips we have for you today. Let’s sum everything up! Without a doubt, there are a lot of things that can help one to speed up their Magento site. Still, you have to start with a great hosting. All in all, multiple website owners prefer to pay for the trendy features and forget about the quality. Therefore, before all else find a worthy hosting provider like MilesWeb. Then just use the tips we gave you and soon your Magento website will show a lightning-fast speed.

 

The Author

Lana Miro falls in love with beautiful web design. She likes to share her experience and explore something interesting. She also cooperates with TemplateMonster for helping everyone to find their best solutions for their own online projects.