If your website is slow, visitors will turn away in droves. They might even click the back button before your website loads.
Website performance will also influence your rankings in search engines. In addition to being ranked higher, many website owners report seeing an increase in search engine spider crawling after speeding up their design.
Today, I would like to share some quick tips on how you can decrease page loading times and optimize your website. If you follow these techniques and best practices, your website will load much quicker.
Google PageSpeed Insights
The first step in optimizing your website correctly is to choose the right hosting plan. Choose Hosting from Godaddy, Bluehost etc. Hosting companies are not always the cause. You may be with a great hosting company but see poor response times because your chosen hosting plan is underpowered. Customers using shared hosting plans, for example, are more likely to face slow loading times as hundreds of websites are hosted on the same server.
Never usse nulled theme. They have inbuilt scripts and those keep running automatically all the tieme and slow down your website by cusyomizing your CPU utilization.
Trash can take up a lot of unnecessary room in your website’s database. The bigger the database, the longer it is to retrieve information from it.
By default, WordPress will automatically delete trash after thirty days. This can be reduced by modifying the wp-config.php file. For example, you could reduce this to seven days by adding the following:
define (‘EMPTY_TRASH_DAYS’, 7);
You can completely disable the trash system by adding this to your wp-config.php file.
define (‘EMPTY_TRASH_DAYS’, 0);
You can do this by adding the following code to your wp-config.php file:
define( ‘WP_POST_REVISIONS’, 3 );
Alternatively, you can completely disable the post revision system by adding the code below to your wp-config.php file. From a blogger’s perspective, this is not an optimal set up as post revisions are very useful, However many website owners have taken this step to ensure their database runs more efficiently.
define( ‘WP_POST_REVISIONS’, false );
Compress Your WordPress Images by using some plugin like WP Smush.it or EWWW Image Optimizer. After installing this plugin go to media and click on Bulk Optimize. It will compress all the images uploaded in the media.
Adding advertisements from third-party advertising networks can increase loading times due to the calls that are made to external servers. Even localized ad tracking scripts can hurt performance.
Unfortunately, official sharing buttons from services such as Facebook and Twitter can increase loading times immensely due to the calls they make to external services. By simply changing to text links or locally stored social media images, you could save reduce your page size by up to one megabyte.
Gzip compression allows a website page to be transferred to a browser at up to 70% of its original size. The browser will then decompress the page and display it to the user.
Use this plugin: Check and Enable GZIP compression
You can enable browser caching by adding the following code to your .htaccess file:
## EXPIRES CACHING ##
ExpiresByType image/jpg “access 1 year”
ExpiresByType image/jpeg “access 1 year”
ExpiresByType image/gif “access 1 year”
ExpiresByType image/png “access 1 year”
ExpiresByType text/css “access 1 month”
ExpiresByType text/html “access 1 month”
ExpiresByType application/pdf “access 1 month”
ExpiresByType application/x-shockwave-flash “access 1 month”
ExpiresByType image/x-icon “access 1 year”
ExpiresDefault “access 1 month”
## EXPIRES CACHING ##
Caching your pages is one of the most effective ways of improving your page loading times, with many plugins promising an improvement of at least 10 times. Popular caching plugins include WP Fastest Cache, WP Super Cache, W3 Total Cache. All three plugins are available free.