1. Have questions about any of our services or products? Let us know.

How to Speed Up Magento

Website loading speed is a major factor when it comes to search engine rankings, retaining viewer interest and turning viewers into customers.   Although Magento is a fast loading Ecommerce website out of the box but there are many ways to tweak it for more speed. Increased speed can easily translate into more sales and better rankings in the  search engine result pages (SERPS).

One of the easiest ways to improve Magento’s speed is to add the Fooman Speedster extension. This extension is free and can be found here.  Load time after this extension is installed is vastly improved and is a must for streamlining your online store.

Another easy way to speed up Magento is to take out this line of code php_value memory_limit 128M which is found in the root .htaccess file. Eliminating this line of code gives magento more memory to work with which will improve page load times greatly.

Enabling Gzip on your server is another great way to speed up your Magento eCommerce site.  You can do this by updateing your .htacess file. First find “enable apache served files” in the file. Next change that code to the following:

############################################
## enable apache served files compression
## http://developer.yahoo.com/performance/rules.html#gzip

# Insert filter
SetOutputFilter DEFLATE

# 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-gzip dont-vary

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

Hold on to your hats!! Off you go! These  modifications and updates are sure to improve the performance of your Magento eCommerce website, convert into better standings in the SERPS, and result in happier customers and more visitors.

14 Comments

  1. This is a great guide! Especially for E-Commerce, speed is such an asset to any company trying to sell online. If your site is loading too slow, they will just do another Google search. Then you can kiss your PPC dollars goodbye :)

    Thanks for the code.

  2. besides, this is not all the answer,
    you need also modify this variable:

    # enable resulting html compression
    php_flag zlib.output_compression on

    you may test the speed by visit http://www.bag-endhere.com

    • Thnx for the extra code!! Your site speed is great, do your use any plug-ins or or just the GZIP compression?

  3. Page load times are extremely important. I tend to deploy a range of performance enhancements including those you already mentioned. Here’s some you didn’t mention:

    * mysql query cache
    * Magento’s Internal Cache
    * Minify your CSS
    * Combine all your CSS in to one file
    * Spread the load (images, video, etc) across CDN

    I cover these in detail on my site ScreencastWorld.com, along with screencasts, video tutorials, and “How To” articles all aimed at Magento Commerce store owners.
    .-= ScreencastWorld´s last blog ..Magento Tips, Tricks, and Hacks #1 – Backups =-.

    • Thnx for the tips! Your website looks like a goldmine for information on Magento…..I’m sure I’ll become a regular reader!

  4. We have developed a Magento Caching Module that decreases page load times to .5-.1 second with session specific information and increase transaction rates 10-100x. If you are interested in using these modules please visit store.delorumcommerce.com

  5. CSS on my page is a big speed drain. Modifying or eliminating CSS can go a long way to resolving slow loading times.

  6. Thanks for the advice! I have just started using magneto and was looking for exactly this. I am definitely going to have a look around for some other helpful tips, thanks for posting!

  7. One of the best ways to improve Magento’s performance is by using PHP Opcode caching such as APC or eAccelerator. We have found it to make a significance difference.

  8. Lukas

    Let’s also try MTurbo http://www.artio.net/magento-extensions/m-turbo-accelerator which speed up Magento

  9. This seemed to have some positive effects on site load speed, thanks !

  10. thank you for this tips to speed up magento, it definitely seemed to make a difference for me. i just love these kind of tips, tweaking to get the maximum out of things.

  11. Joanna

    WHOAH! I just commented out the php_value memory_limit 128M line of code in my .htaccess file and my site is running SUPER fast now! THANKS FOR THE GREAT TIP!

  12. Syntax3rror

    Its good practice to set the php memory limit to unlimited??

    What happen when the site access by multiple user concurrently and every request may consume the lot of memory(assume that every request consume 128MB)

    What happen to the next request???
    :)

Leave a Reply