1. Set images, JavaScript and CSS expiration date

Just paste below codes in your .htaccess and speed up your website by 5%.As we know images, JavaScript and CSS is the backbone of any website and we cannot ignore their use in any website.So by the Google Page Speed Insight rules, we have to set images, JavaScript and CSS expiration date which stored in browser while loading.

<FilesMatch "\.(?i:ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf|x-html|css|xml|
js|woff|woff2|ttf|svg|eot)(\.gz)?$" >
<IfModule mod_expires.c >
ExpiresActive On
ExpiresDefault A0
ExpiresByType image/gif A2592000
ExpiresByType image/png A2592000
ExpiresByType image/jpg A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/ico A2592000
ExpiresByType image/svg+xml A2592000
ExpiresByType text/css A2592000
ExpiresByType text/javascript A2592000
ExpiresByType application/javascript A2592000
ExpiresByType application/x-javascript A2592000
</IfModule >
<IfModule mod_headers.c >
Header set Expires "max-age=2592000, public"
Header unset ETag
Header set Connection keep-alive
FileETag None
</IfModule >
</FilesMatch >

2. Minify CSS, JavaScript and HTML

We all a bad habit to write our codes to see easily in desktop.But it decreases our website speed. There are many online tools to minify your codes.

Screenshot_2

Screenshot_4

Screenshot_5

3. Compress image (resize)

Google always use the minimum size of images which increases our wordpess website

4. By using 3 plugins

W3Total Cache

Autoptimize

Above the Fold Optimization