Sohaib's Tech Blog

Something for every one

How I got my Gtmetrix.com Score to 1.98s — 2015

How I got my Gtmetrix.com Score to 1.98s

My last project was very challenging where I was told to optimize Magento Site, Customer was using a dedicated server where I’ve to optimize not only Magento but also Optimize & Speed up the server, Took me some real time and hard work. I am happy Yayyyyy.

I don’t want to get in details as far as server configuration but I achieve 1.98s load time

Magento which was loading in 22s to 15s , I got it down to 1.98s

I’ve setup the following

APC
Memcached
Nginx with Pagespeed

If you need any assistance from me speeding up your Magento, Drop me a line, I charge flat $1,000 and trust me it takes a lot of time and effort, Oh yea client was using Amazon Cloudfront CDN but then he switch to Akamai CDN which is the TOP Dawg in CDN world I am here to assist.

So do you want to speed up your magento store ?

Advertisements
Optimize Mysql Percona Database for 12GB Ram Server — 2015

Optimize Mysql Percona Database for 12GB Ram Server

Step 1) Switch from MyISAM to InnoDB (e.g. XtraDB)
Step 2) /etc/mysql/my.cnf

default_storage_engine    = InnoDB
innodb_log_file_size = 128M
innodb_buffer_pool_size = 8G
innodb_file_per_table    = 1
innodb_open_files    = 400
innodb_io_capacity    = 400
innodb_flush_method    = O_DIRECT
innodb_flush_log_at_trx_commit    = 2
innodb_thread_concurrency = 8

 

These settings are optimized for 12GB RAM

Enjoy the speed of your Mysql **PERCONA

Magento Defer JavaScript — 2015

Magento Defer JavaScript

How I achieve 2.8s Load time in Magento as compare to 10s using the following

In order to have Defer Javascript, Please change the following files page.xml, my page.xml is stored at

/home/domain/public_html/app/design/frontend/base/default/layout/page.xml
<block type="page/html_head" name="head" as="head">
<action method="addJs">prototype/prototype.js<params>async</params></action>
<action method="addJs">lib/ccard.js<params>async</params></action>
<action method="addJs">prototype/validation.js<params>async</params></action>
<action method="addJs">scriptaculous/builder.js<params>async</params></action>
<action method="addJs">scriptaculous/effects.js<params>async</params></action>
<action method="addJs">scriptaculous/dragdrop.js<params>async</params></action>
<action method="addJs">scriptaculous/controls.js<params>async</params></action>
<action method="addJs">scriptaculous/slider.js<params>async</params></action>
<action method="addJs">varien/js.js<params>async</params></action>
<action method="addJs">varien/form.js<params>async</params></action>
<action method="addJs">varien/menu.js<params>async</params></action>
<action method="addJs">mage/translate.js<params>async</params></action>
<action method="addJs">mage/cookies.js<params>async</params></action>
GTmetrix
GTmetrix