Difference between revisions of "Speed Up Magento"

From Moogento How-to Guides
Jump to navigation Jump to search
m
m
Line 4: Line 4:
 
==Quick Wins==
 
==Quick Wins==
  
===Gzip HTML===
+
===Gzip HTML / CSS / javascript===
 
In Firebug, expand your page html section, and look for gzip in the response.
 
In Firebug, expand your page html section, and look for gzip in the response.
  
Line 14: Line 14:
 
: <code>gzip on;</code>
 
: <code>gzip on;</code>
  
'''If you're running linux''', uncomment this line in your .htaccess file:
+
'''If you're running linux''', look for this section in your .htaccess file:
: <code>#php_flag zlib.output_compression on</code>
+
: <code>## enable apache served files compression</code>
 +
* Try uncommenting all code lines in that section.
 +
 
 +
* Now test the same section in Firebug and the HTML response should be showing 'gzip'.
 +
 
 +
* Bonus points here if the .css and .js files are also showing as gzipped.
  
  
 
[[Category:Extension Setup]]
 
[[Category:Extension Setup]]

Revision as of 23:50, 14 April 2014

Overview

Magento has some quick-win areas, and some which can take longer. Let's start with the first.

Quick Wins

Gzip HTML / CSS / javascript

In Firebug, expand your page html section, and look for gzip in the response.

magento gzip.png

If it's not there you need to turn this on at a server level.

If you're running nginx, add this to your .conf file, inside the location sections, then restart nginx:

gzip on;

If you're running linux, look for this section in your .htaccess file:

## enable apache served files compression
  • Try uncommenting all code lines in that section.
  • Now test the same section in Firebug and the HTML response should be showing 'gzip'.
  • Bonus points here if the .css and .js files are also showing as gzipped.