How to optimize Magento site

How to optimize site magento

Magento has become one of the most popular and effective e-commerce applications all over the world since its birth in 2001. There are numerous advantages and convenience that Magento brings about for a web store and its owner but we will save those in another post coming up next. 

Latest Update: We’ve just released the version 2.0 of Claue Multipurpose Magento 2 Theme, with with a bunch of performance improvements and exclusive features. Check this theme out now: Claue Magento Theme  2. 0 

claue2_edited (1)

Live Demo 

Claue – Clean, Minimal Magento 2&1 Theme is an excellent template for a modern and clean eCommerce store with 40+ homepage layouts and tons of options for shop, blog, portfolio, store locator layouts and other useful pages. Claue version 2. 0  comes with a bunch of  exclusive features including:

  • Being based on Luma theme.
  • Meet all standards of Magento Theme
  • Significant performance improvement
  • Compatible with most third-party extensions.
  • Fully compatible with Magento 2.4.x

This second advanced version completely differentiates from its previous one. Thus, if you are using Claue version 1 and want to update to Claue version 2, you can only rebuild a new website no rather than updating from the old version. Now, let’s get back the main topic.

In this article, we will mention a “dark-side” Magento users face, ie. Its undeniable resource costing consequence – reasons and recovery.This limitation alone will slowdown your website, and to some extent, irritates your customers for wasting their time. However, don’t Magento users be hopeless as we are still masterful enough to tackle this situation.
Below are some of our practical solutions to optimize Magento site’s loading time relying on our own experience and ability in exploiting Magento for over 7 years.

Modify .htaccess file

In your .htaccess file, you can add the following code to enable mod_deflate module of Apache and it will increase the ability to compress your CSS, JS, Text in order to speed up the loading time.

<IfModule mod_deflate.c>

## enable apache served files compression

     # Insert filter on all content
     SetOutputFilter DEFLATE
     # Insert filter on selected content types only
     AddOutputFilterByType DEFLATE text/html text/plain text/xml
text/css text/javascript

     # Netscape 4.x has some problems...
     BrowserMatch ^Mozilla/4 gzip-only-text/html

     # Netscape 4.06-4.08 have some more problems
     BrowserMatch ^Mozilla/4\.0[678] no-gzip

     # MSIE masquerades as Netscape, but it is fine
     BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

     # Don't compress images
     SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzipdont-vary

     # Make sure proxies don't deliver the wrong content
     Header append Vary User-Agent env=!dont-vary


Copy HTTP Request by Expires Headers

When a customer visits your website for the first time, the site will load lots of HTTP requests. How to minimize these requests? We will use Expires Headers function to save unnecessary HTTP requests for the next visits. Simply add this code to your .htaccess file:

<IfModule mod_expires.c>

## Add default Expires header

     ExpiresActive On
     ExpiresDefault "access plus 1 year"


Reduce the file size of images to be uploaded

As far as you know, Magento is used for e-commerce website; therefore, all images on the site particular product images are essential. We need eye-catching images, of course, those are sometimes too big to fully load and time-costing. As a result, it is crucial for a store owner to find out a sensible solution to reduce the file size of images to be uploaded but still restrain the quality of the images. It will be critically helpful to reduce site’s capacity when you run it.
We suggest a few feasible tips and directions for this issue. Trust us, it is completely simple and all you need is uploading your images to a system and it will return you re sized ones while the quality is kept. Now you can post similar-quality-shrunk images instead of old stone-sized ones. Below are our tips: (PNG images accepted only) (all images accepted)


Turn off unnecessary modules

There are thousands of Modules available in Magento to be used or shelved. For the medium-sized e-commerce website, it is not always necessary to use all these extensions and modules. You need to list all Modules that your system won’t use and turn them off. It helps to improve the site loading time when unused extensions are disabled.
Simply go to Admin > System >Configuration> Tab Advanced>Advanced>Disable Modules Output, it shows all available Modules and their status. Select unnecessary modules and disable them.

How to optimize site magento

Utilize Magento Compilation

Magento compilation will collect all functions in one place, which will decrease steadily site loading time up to 25-50% depending on each system. It is a brilliant feature that helps improve the speed of your site.
Go to Admin > System > Tools >Compilation, click Run Compilation Process.
When the process is done, you can Disable it.


Enable Fat Catalog in Admin panel

This function accelerates products queries and returns time-saving results.
Go to Admin >Sytem>Configuration > Catalog:
In Frontend section, change 2 values of “Use Flat Catalog Category” and “Use Flat Catalog Product” to Yes:


And remember to Clear cache before it takes effect.

Enable Merge CSS and JS

Magento utilizes a lot of JS and CSS files. Loading each of those files is time-costing, therefore, to minimize the loading time, you can enable Merge function to compress CSS and JS files in one file and it will load at speed of light.
Go to Admin >System >Configuration >Developer:
Select “JavaScript Settings” and change the value of “Merge JavaScript Files” to Yes.
In “CSS Settings”, select Yes for “Merge CSS Files”.


Clean Database Log

A Magento website generates a huge amount of logs, so we need to clear these logs regularly to save space of your database and improve the loading time.
Go to Admin > System > Configuration >System:
In Log cleaning, select Yes for “Enable Log Cleaning” and enter the time frame for logs saving, eg. 14 days.



When you have applied those above listed solutions, be notified that you need to refresh and enable cache in the Magento back end so that they take effect. 


We hope those methods do help you improve the current site loading time. Besides, you can look for some other utilities to enhance your site optimization, for instance:

Applying one of these open utilities will partly or mostly accelerate the loading speed of your site, however, be careful as they can conflict with other ready-installed files and make errors in performing your website. Therefore, saving a backup version of your website is always a “lifebuoy” for you before you implement any of those optimizations.

Enjoy and wish you success!

Magesolution support team

7478 Total Views 4 Views Today