Google announced that from July 2018 your website’s page speed will be an important ranking factor for mobile. Poorly written codes can slow your website, negatively affecting load times and rendering speed. Optimization is a special type of minification which will help you make your site light and fast.
What is Minifying?
So, minifying your code will totally omit the gaps and spaces in your codes, which will make your site speed awesome. Moreover, if you have good site speed, you can receive a good amount of traffic on your site because Google ranks only those sites on the 1st page which takes low/few time to load.
- Manually (Going through single codes and minifying them yourself)
- Using CloudFlare CDN
- Using plugins in WordPress.
CloudFlare, Inc. is a U.S. company that provides a content delivery network, DDoS mitigation, Internet security services and distributed domain name server services, sitting between the visitor and the CloudFlare user’s hosting provider, acting as a reverse proxy for websites. CloudFlare makes the Internet work the way it should.
CloudFlare CDN Setup Tutorial
CSS & JS minification operates on cached CSS and JS files only. Once Cloudflare returns a cache HIT for the file it will be returned to browsers in minified form. This allows CloudFlare to deliver a more complete minification result. If you need to enable or disable minification for CSS & JS you will now need to purge your CloudFlare cache to see the effect of any minification change.
Plugins which you can use for minifying your site:
I used Autoptimize in the past but it did not gave me a good result. So I switched to another trick.
This plugin will remove query strings from static resources like CSS & JS files inside the HTML
<head> element to improve your speed scores in services like Pingdom, GTmetrix, PageSpeed and YSlow. This plugin will ONLY remove query strings from resources located inside the HTML
<head> element, any query strings located inside the HTML “body” element shall and will not be removed by this plugin.
This plugin generates static HTML files from your dynamic WordPress blog. After a HTML file is generated your web server will serve that file instead of processing the comparatively heavier and more expensive WordPress PHP scripts.
There can be many unused and useless cache staying on your site which will slow down your site. So, in order to get rid of it. You can install and activate it and it will also automatically do all the work for you. You can also find some advanced features from it in advanced option.
One main thing! Using the combination of Remove query strings from static resources, WP Super Cache and minifying the site with CloudFlare can give you a great result. Earlier, I also used the combination of Autoptimize, Remove query strings from static resources and WP Super Cache but it also did not gave me my expected result. Now, when I started using WP Super Cache with Remove query strings from static resources and CloudFlare CDN, it is giving me a mind-blowing result. It is just awesome and fabulous. My website is doing great and is speedy all because of this combination of WP Super Cache with Remove query strings from static resources and CloudFlare CDN
Though it’s a premium plugin you should give it a try. It is really worth. Using this plugin will make your website a Rocket.
This plugin creates static HTML files from your dynamic WordPress blog. When a page is rendered, PHP and MYSQL are used. Therefore, the system needs RAM and CPU. If many visitors come to a site, the system uses lots of RAM and CPU so the page is rendered so slowly.
In this case, you need a cache system not to render page again and again.
Cache system generates a static HTML file and saves. Other users reach to the static HTML page.
Setup of this plugin is so easy. You don’t need to modify the .htacces file. It will be modified automatically. It is really best to use. You may give it a try and see how your site looks like after using this plugin.