A Few Tweaks to Optimise Magento’s Speed

Posted on

As well as enabling Magento’s cache, running the compilation process and minifying the javascript and css there are a few more small things you can do to make a big difference to your Magento websites speed.

1. Smush your images

Run all of your images through Smush.it

2. Use sprites where possible

In Photoshop build a document leaving 1px of space between each element. Once you are done upload it to Sprite Cow. This website will give you the co-ordinates of each element in your sprite.

3. Add expires headers to your root .htaccess file

Open your root .htaccess file and fine the part that looks like this:
[pyg language=”bash”]

############################################
## Add default Expires header
## http://developer.yahoo.com/performance/rules.html#expires
#ExpiresDefault “access plus 1 year”

############################################
[/pyg]

Replace this with
[pyg language=”bash”]

############################################
## Add default Expires header
## http://developer.yahoo.com/performance/rules.html#expires
ExpiresActive on
ExpiresDefault “access plus 1 year”

############################################
[/pyg]

4. Uncomment eTags

In your root .htaccess find this line:
[pyg language=”bash”]
#FileETag none
[/pyg]
and remove the hash.

5. Link dont @import

When requesting css use:
[pyg language=”html”]

[/pyg]
rather than
[pyg language=”html”][/pyg]

And there you have it, just a few minor adjustments can increase your Magento websites performance dramatically.

Want to discuss a project?

Talk to our Magento experts on 01785 279920

Request a callback