Magento Speed Optimization

Magento Speed Optimization

If your site appears to be a tad slow, with an absolute sluggish performance, there are high chances that it needs a lot of tweaking around. Our Magento speed optimization services will tweak into the necessary changes to have your e-commerce store back on track, with quick turnaround time, responsive enough to have your visitors stick to your webshop. We also provide Magento2 speed optimization in order to make your Magento 2 store faster.

Importance From Business Perspective

Loading time, if quick, restrict users from getting frustrated, since everything is accessible on time Faster load time means more leads and conversions i.e. 2-4 seconds on mobile as well as 5-7 seconds on the web With an optimized speed, the website ranks higher on search engines, showing up on top of search engine result pages (SERPs)

How Do We Do?

We have gained years of expertise in analyzing the speed of varied Magento Ecommerce Store, and hence we know how to solve complex issues in no time, as well as recommend necessary optimization measures to our clients. We follow step by step speed optimization process for Magento 2 as well wherein we first review your website thoroughly, followed by listing down optimization checks, further succeeded by working on optimization measures, leading to final report presentation summarizing everything.

Speed Optimization Techniques We Deploy

Our technical wizards leverage a host of optimization techniques to ensure a 3x faster loading speed.

Reducing Http Requests

An Http request comprises of images, css, scripts, etc. that are present in a website. When a site loads, the Http requests gets downloaded in the server side. Http requests contribute to almost 80% of the site’s loading time. Hence for a faster loading speed, it is essential to reduce these requests. Http requests can be reduced by clubbing all the images under a single url or by combining all scripts and stylesheets and categorizing them separately under a single script and a stylesheet.

Opting For Ajax Loading

Ajax is a combination of several programming tools like JavaScript, XML, DHTML, Microsoft object and Cascading Style Sheets(CSS). Ajax updates the contents on a web page when a user performs an action. You can also avoid loading an entire web page by using image lazy loading technique as it loads only the images above the fold. The images below the fold gets loaded only when the user scrolls down the page or navigates to other sections in the site. By resorting to these techniques you can improve your site’s loading speed drastically.

Making Use Of Sprite Images

Sprite images are extremely advantageous when it comes to improving your site’s loading speed. As per this methodology, all the images in the website will be merged under one single image. The resulting image will have a separate url and will be placed under a single http request. When the website loads, these images will be retrieved from their respective background positions. By this way the number of http requests can be dwindled.

Enabling Magento Cache

File system cache is the default cache available in Magento platform. By enabling this file system cache, all the cache data gets stored under the folder Var/Cache. File system cache works well for websites receiving minimal traffic. However, for a better performance, it is advisable to store the Var/Cache folder in temporary storage file (tmps) as it shrinks and expands to accommodate the cache files.

Configuring PHP Settings

By configuring the PHP settings like memory_limit and max_execution_time, you will be able to thwart fatal errors. You can modify these parameters by accessing them from the .htaccess file, which will be present in your store’s root directory. Based on your requirements, you can change the value of these parameters. For instance, you can change the memory limit by replacing php_value memory_limit 128M to php_value memory_limit 256M. The same is applicable for setting the execution time as well.

Utilizing A PHP Accelerator

PHP accelerator is an extension that caches the compiled php scripts, thereby eliminating the need to parse and compile the code every time a web page gets loaded. Hence accelerator minimizes the server load and drastically increases the speed of your PHP code. Some of the popular PHP accelerators are APC, eAccelerator, Zend Optimizer, Xcache, etc. Performance wise, these accelerators are similar. However APC and Zend Optimizer+ suits well for Magento.

Tuning PHP realpath_cache

Whenever you include a new file and use a relative path, PHP will have to lookup as to where the file exists. Realpath cache reduces disk lookups by enabling php to cache the reference paths of files/directories’ location you are using. To better the efficiency of real path cache, the parameter realpath_cache_size should be increased. In case you do not change your file paths often, then you can increase count of realpath_cache_ttl.

Activating Apache mod_expires

Apache mod_expires is a module that lets you set an expiry time on the images, CSS, Javascripts that are being cached by the browsers. When these data are modified in your site, it is essential to have them updated in the cache as well. By enabling mod_expires, all your recent changes gets reflected in the cache after the specified time period. You have option of setting the expiry time limit. It could be weekly or monthly depending on how frequently you revamp your webpage.

Tuning Mysql Server

Configuring your Magento with your Mysql database server is a key requisite when it comes to performance optimization and for that you need to configure Mysql query options. Whenever a Magento page is loaded, database queries are made. The queries are first parsed and then executed. Retrieving these queries from the disk consumes time. Mysql has a built in parameter called query_cache_size. By activating this parameter, the result of the query can be cached in Mysql memory, leading to a faster loading speed.

Combining CSS And JavaScript

Minimizing the number of Http requests plays a pivotal role in improving your website’s performance. There are many ways to reduce these Http requests. One of the popular techniques to reduce these Http requests is to combine all the JavaScript and CSS files together. It has a good impact on the site’s loading speed.

Employing CDN To Static Content

A content delivery network (CDN) renders alternate server nodes for end users to download static content like images, CSS and JavaScript. CDN is basically a network comprising of geographically distributed nodes. These nodes also known as edge servers, caches the static resources of the site. When a user visits your site, the node that is geographically closer to the user delivers the static content, thereby reducing the latency and improving your site’s loading speed.

Using Full Page Cache

Full page cache is a very utile feature offered by Magento, for your eCommerce site. While generating and delivering a page to a first time user, Magento saves a copy of the page in the cache. When the user visits the page again, this static cached copy is displayed to the user. Full page cache is very instrumental in minimizing the server load and avoiding downtime during peak traffic period.

  • Loading time, if quick, restrict users from getting frustrated, since everything is accessible on time
  • Faster load time means more leads and conversions i.e. 2-4 seconds on mobile as well as 5-7 seconds on the web
  • With an optimized speed, the website ranks higher on search engines, showing up on top of search engine result pages (SERPs)

How Do We Do?

We have gained years of expertise in analyzing the speed of varied Magento Ecommerce Store, and hence we know how to solve complex issues in no time, as well as recommend necessary optimization measures to our clients. We follow step by step speed optimization process for Magento 2 as well wherein we first review your website thoroughly, followed by listing down optimization checks, further succeeded by working on optimization measures, leading to final report presentation summarizing everything.

Speed Optimization Techniques We Deploy

Our technical wizards leverage a host of optimization techniques to ensure a 3x faster loading speed.

    • Reducing Http Requests

      An Http request comprises of images, css, scripts, etc. that are present in a website. When a site loads, the Http requests gets downloaded in the server side. Http requests contribute to almost 80% of the site’s loading time. Hence for a faster loading speed, it is essential to reduce these requests. Http requests can be reduced by clubbing all the images under a single url or by combining all scripts and stylesheets and categorizing them separately under a single script and a stylesheet.

    • Opting For Ajax Loading

      Ajax is a combination of several programming tools like JavaScript, XML, DHTML, Microsoft object and Cascading Style Sheets(CSS). Ajax updates the contents on a web page when a user performs an action. You can also avoid loading an entire web page by using image lazy loading technique as it loads only the images above the fold. The images below the fold gets loaded only when the user scrolls down the page or navigates to other sections in the site. By resorting to these techniques you can improve your site’s loading speed drastically.

    • Making Use Of Sprite Images

      Sprite images are extremely advantageous when it comes to improving your site’s loading speed. As per this methodology, all the images in the website will be merged under one single image. The resulting image will have a separate url and will be placed under a single http request. When the website loads, these images will be retrieved from their respective background positions. By this way the number of http requests can be dwindled.

  • Enabling Magento Cache

    File system cache is the default cache available in Magento platform. By enabling this file system cache, all the cache data gets stored under the folder Var/Cache. File system cache works well for websites receiving minimal traffic. However, for a better performance, it is advisable to store the Var/Cache folder in temporary storage file (tmps) as it shrinks and expands to accommodate the cache files.

  • Configuring PHP Settings

    By configuring the PHP settings like memory_limit and max_execution_time, you will be able to thwart fatal errors. You can modify these parameters by accessing them from the .htaccess file, which will be present in your store’s root directory. Based on your requirements, you can change the value of these parameters. For instance, you can change the memory limit by replacing php_value memory_limit 128M to php_value memory_limit 256M. The same is applicable for setting the execution time as well.

  • Utilizing A PHP Accelerator

    PHP accelerator is an extension that caches the compiled php scripts, thereby eliminating the need to parse and compile the code every time a web page gets loaded. Hence accelerator minimizes the server load and drastically increases the speed of your PHP code. Some of the popular PHP accelerators are APC, eAccelerator, Zend Optimizer, Xcache, etc. Performance wise, these accelerators are similar. However APC and Zend Optimizer+ suits well for Magento.

    • Tuning PHP realpath_cache

      Whenever you include a new file and use a relative path, PHP will have to lookup as to where the file exists. Realpath cache reduces disk lookups by enabling php to cache the reference paths of files/directories’ location you are using. To better the efficiency of real path cache, the parameter realpath_cache_size should be increased. In case you do not change your file paths often, then you can increase count of realpath_cache_ttl.

    • Activating Apache mod_expires

      Apache mod_expires is a module that lets you set an expiry time on the images, CSS, Javascripts that are being cached by the browsers. When these data are modified in your site, it is essential to have them updated in the cache as well. By enabling mod_expires, all your recent changes gets reflected in the cache after the specified time period. You have option of setting the expiry time limit. It could be weekly or monthly depending on how frequently you revamp your webpage.

    • Tuning Mysql Server

      Configuring your Magento with your Mysql database server is a key requisite when it comes to performance optimization and for that you need to configure Mysql query options. Whenever a Magento page is loaded, database queries are made. The queries are first parsed and then executed. Retrieving these queries from the disk consumes time. Mysql has a built in parameter called query_cache_size. By activating this parameter, the result of the query can be cached in Mysql memory, leading to a faster loading speed.

  • Combining CSS And JavaScript

    Minimizing the number of Http requests plays a pivotal role in improving your website’s performance. There are many ways to reduce these Http requests. One of the popular techniques to reduce these Http requests is to combine all the JavaScript and CSS files together. It has a good impact on the site’s loading speed.

  • Employing CDN To Static Content

    A content delivery network (CDN) renders alternate server nodes for end users to download static content like images, CSS and JavaScript. CDN is basically a network comprising of geographically distributed nodes. These nodes also known as edge servers, caches the static resources of the site. When a user visits your site, the node that is geographically closer to the user delivers the static content, thereby reducing the latency and improving your site’s loading speed.

  • Using Full Page Cache

    Full page cache is a very utile feature offered by Magento, for your eCommerce site. While generating and delivering a page to a first time user, Magento saves a copy of the page in the cache. When the user visits the page again, this static cached copy is displayed to the user. Full page cache is very instrumental in minimizing the server load and avoiding downtime during peak traffic period.