Loading...

15 Awesome Tips to Speed up Magento Websites in 2017

Magento is an awesome e-commerce software and thousands of people love this software due to robustness and the big pool of talented developers. Despite being one of the best e-Commerce software it has one major issue which is its speed. If you already have a store you probably have noticed that it’s a resource hungry platform and makes your site slow. We have compiled a list of 15 awesome tips to speed up Magento websites

1. Use Magento Latest Version

Always keep your Magento latest Generally Latest version is highly optimized for website speed so make sure you are using Magento’s latest version.

2. Combine JS files

Every JS file sends HTTP request to the server and increases the page load time so you can combine them and reduce server requests and improve your Magento website performance. Magento provides in build facility to combine all JS files. Check step by step guide here.

Step-1. Login your Magento Account
Step-2. Go to “System menu”
Step-3. Click on “Configuration”
Step-4. Select “General”
Step-5. Go to JavaScript Setting and set “Yes”

js combine

3. Combine CSS Files

Same concept behind combining CSS files as JS files, You can reduce server request by combining all CSS files into a single file. Check here
Step-1. Login your Magento Account
Step-2. Go to “System” menu from the top and click on “Configuration”
Step-3. Select General
Step-4. Go to CSS Setting and set “Yes” and save config.

css combine

4. Minify JS, CSS& HTML files

You can reduce JS, HTML and CSS file size by minifying. Actually, minify technique removes the white space from the coding. Many extensions are available in Magento to minify these files. Here is the extension I love the most – https://www.apptrian.com/minify-html-css-js-for-magento

5. Image Optimization

Media files take too much time to load so it is compulsory to optimize them.
– Compress all images
– Define images dimension
You can also use Magento extension for image optimization
https://www.apptrian.com/image-optimizer-for-magento

6. Cache Setting

Magento provides in build cache handling facility, check step by step guide here…
Step-1. Login your Magento Admin Account
Step-2. Go to “System” menu from the top and click on “cache management”
Step-3. “Select all” cache type
Step-4. Then “Enable” and click “Submit”.

magento-system-caching

7. Enable GZip Compression

You can do this by adding below code in your .htaccess file. This code simply enables the GZip compression. Gzip is a method of compressing files (making them smaller) for faster network transfers.

<IfModule mod_deflate.c>
# Compress HTML, CSS, JavaScript, Text, XML and fonts
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml
# Remove browser bugs (only needed for really old browsers)
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent</IfModule>

8. Disable Unused Extensions (Modules)

Magento extensions have many JS and CSS files and send the HTTP requests to your server which delays your page load, so it’s important you disable unused extensions and reduce the HTTP requests. It is always advised that you uninstall all unused extensions. Let’s see how to disable unused extensions or modules.

Step-1. Login with your Magento admin account
Step-2. Click on “configuration” from system navigation menu
Step-3. Then go to left-hand sidebar in bottom area and click on “Advance” from Advance menu
Step-4. And then disable your unused modules (extensions)
Step-5. Now “Save Config.

magento disable modules

9. Fast and Reliable Hosting

Buy hosting from good hosting providers like Rackspace, Hostgator, Nexcess etc. and improve your Magento website speed.

CDN could be a good choice for you as it increases the site speed significantly by storing the copy of your website on the shared server and deliver the site info to customer from their nearest server.

10. MySql Configuration

MySQL configuration can improve Magento website performance. It helps in cache.e-commends settings for your my.cnf file.

query_cache_type = 1
query_cache_size = 32M
query_cache_limit=2M

And for php.ini.

php_value memory_limit 128M

11. Enable Flat data products and categories

Step-1. Login your Magento Account
Step-2. Go to “System menu” and click on “Configuration”
Step-3. Select “Catalog” from the left sidebar Catalog menu
Step-4. Then open “Frontend”
Step-5. Set “Use Flat Catalog Category” and “Use Flat Catalog Product” to “Yes“.

flat catalog

12. Update Indexes

Generally, Magento Index update speed up MySQL queries and increase the site speed. Here is a step by step guide.
Step-1. Go to your Magento admin account
Step-2. Go to “System” Menu and click on “Index Management.”
Step-3. Select all of the indexes (or the ones you want to update), choose “Reindex Data” from the dropdown and click “Submit.”

magento reindex data

13. Enable Log cleaning

By default log days are 180 in Magento website so make it 14 days.

Step-1. Login Magento Admin
Step-2. Go to System >> Configuration
Step-3. Click on ”Advanced”
Step-4. Click on System In the left menu
Step-5. Save Log days for 14 days
Step-6. Click on “Log Cleaning”, change “Enable Log Cleaning” to “yes and Save Config.

magento log cleaning

14. PHP Acceleration

PHP accelerator can help you in caching. Many types of acceleration are available. Some are APCXcache, eAccelerator

15. Enable Compilation

In the Magento Admin navigate to the top right and click System >>Tools >>Compilation and Enable it.

Step-1. Login Magento Admin
Step-2. Go to System menu and click on Tools
Step-3. Go to Compilation and enable and run compilation.

Note: -Disable compilation if you are installing any extension.

magento compilation process

Conclusion

Magento is the most popular e-commerce platform in the world and has many in-build features to optimize your website like minify JS, CSS, HTML, optimize database, indexes, compilation, log clean up etc. Use all these functionalities to speed up your website up to 70%.

Check your website speed by using these awesome tools.
Gtmetrix
Pingdom
Google Page Speed Tool

Please give your feedback and suggestion in comments.

Josh Wilson is a professional Magento Expert with over 11 years of experience. He is currently working for CGColors – which is the USA based Magento Design Agency. He is also consulting businesses to help increase their online exposure and conversions.
  • Very in-depth information you have shared about Magento website load time optimization. I have learnt many things today about Magento. Great work Josh. Cheers !!!