Once you are done designing your WordPress website there are a few things you can do to ensure that it is snappy and does not drive the visitors nuts with the long waits they have to face with other similar websites. After all, speeding up your website is the only way to ensure high traffic and sales. You have to remember that if your page size is over 2MB you are not only weighing down the general speed, you are also losing sales, followers and incurring regular loss.
So Here is how to Say Goodbye to Slow Loading WebPages and Frustrating Hours of Wait With a Few Simple Steps
This will enable compression irrespective of browsers used by the visitors.
While uploading your images do not forget to optimize them. One easy way to do that is to use Photoshop and save the images for web with the image quality of up to 60%. It is always wiser to use progressive images for JPG files since progressive rendering ensures a smoother experience. Please optimize the images to shrink them up to 4 times before uploading on your website. The quality of the images remains unchanged as on the page but the webpage becomes undoubtedly faster.
It is common knowledge that browsers can handle a limited number of HTTP requests at one time. So merging all your CSS files into one will help your webpage load faster than usual. And if your CSS files are lesser than 2KB then they should be inlined rather than making another HTTP request.
If caching is enabled then your code does not keep generating the same page over and over again. This gives the users a much smoother and faster experience. There are tons of WordPress plugins which drastically improves page loading speed by facilitating caching.
KeepAlive makes sure that more than one connection is kept open for multiple HTTP requests. If not, simply add the following snippet of code to .htacess file-
Header set Connection keep-alive
CDN is something highly recommended for WordPress users. It is a distributed system of servers which send data to your clients on the basis of locations. The static content of your website like CSS files and images can be stored at any CDN and delivered to your client from the nearest geographically located CDN making the process much faster.
This is the most common mistake made by website designers. While uploading your images make sure you use only PNG images and avoid using JPEG which rasterizes texts making it blurry. Also minimize the usage of GIFs since they can evidently slow down your website. Also PNG images are way lighter than JPEG ones.
Loading a page more than 2MB on a 3G mobile connection can be a nightmare for your visitors. So always keep your page size on a check to achieve minimum loading time per page. Winnow through images and content and add only the ones which are indispensible for your site.
For each missing file your website generates a 404 error which will hinder smooth and fast loading of your websites. so try removing all the red rows during rendering.
If you have an image which is completely necessary however has a humongous size, then scale it down using Photoshop. Create thumbnails of the main images by mentioning the exact dimensions; HTML is not the place to add images by fluke. Turn the thumbnails into links for the bigger images.
Recommended caching time by Google is one week and up to one year for permanent assets. So set a caching strategy for static files so the correct browser can decide if previously loaded files can be used. This boosts loading time tremendously.
Although names do not matter, most hosting companies rely on shared hosting for minimizing their costs. If you are aiming at launching an eCommerce website then you are bound to experience heavy traffic, so it is wise for you to avoid shared hosting plans altogether.
All CMS based sites require database optimizations. Screen your code for slow queries and optimize your DB configuration. WP has a number of plugins which cuts down the hours of work required for DB optimization.
If all the steps seem too cumbersome it is always okay to hire an expert who can dedicate his time and experience towards making your website faster.