Website is loading slow
As a hosting service provider very often we encounter a question from client why is my website is loading slow. There can be 100s of reasons why the website is loading slow and certainly, it is not easy to answer. More than 98% of the time, the issues could be in Website or customer’s location. As a hosting provider we monitor our servers very actively for any issues, if there is an issue found, it will be rectified immediately.
The business owner's do not want their website to load slow. Slow loading of a website may give discomfort to the visitors and it also affects the revenue of the business. There are several studies done on the Internet related to how slow website loading time affects your business. Slow loading website not only affects your revenue and it also creates a bad impression among the clients. Eg: If your website is taking 8 to 10 seconds to load then the users will feel inappropriate and will exit from your website.
In this competitive world, users will not come and stick to your website for seeking information or for doing business if you are website is loading slow as there are numerous of options available for users to find the required information faster and in a better way. So it is necessary for the website owners to maintain a fast website loading speed along with easy to navigate website. Actually, there can several reasons for slow website loading. As a leading web hosting service provider in India, we use the latest technology to help in improving the loading time of our client's website.
If your website is loading slow then you need to find out whether it is loading slowly only from one system or from every system, if the website is loading slowly only from one system then it might be an Internet issue, you can check with your ISP provider for the same. Other best way we suggest to our clients is that check the loading time of your website from various locations and make a document of it, and find out the average loading time of your website. Usually recommended loading time of the website is from 3 to 5 seconds or in the worst case it can be up to 6 seconds. If your website is loading more than 6 seconds then certainly you have to think of finding a way to improve your website's loading time.
In HostingRaja we recommend possible solutions to improve the loading time of our client's website.
Clients can migrate to VPS or Cloud or Dedicated server of HostingRaja as we use the optimized control panel to improve the loading time of our client's website or you can also contact our technical team they will help you in bringing down the loading time. If in case you are using VPS or Cloud or Dedicated server from HostingRaja then we suggest upgrading the RAM, CPU, and bandwidth. Even after using higher configuration if your website is loading slow then you need to contact your web developer for further assistance.
Below are the possible reasons for slow loading website:
Too Many Images in top banner and too many images on any page
Over-enthusiastic business owners or web developers keep too many images on the home page to impress the visitors. If you are having too many images on your website ensure that the images are very well optimised and it is less than 200kb. If you are using any top banner then be sure that you have only 3 or 4 images on the top banner having more than 3 images on the top banner will increase or loading time. We have seen in some scenarios where customers have more than 10 images in the top sliding banner.
If you are having too many images on your website try to reduce the number of images loaded or reduce the size of the icons and images. If you are using too many small images ensure that each image is less than 25 KB in size.
Another common reason for slow loading of website is that too many CSS and JS files
The reason why some websites are having too many CSS and JS files is that these websites are created using any open source or any template or themes available from the Internet. These themes and templates generally have more than 4 or 5 CSS in the home page, when you have more than 4 or 5 CSS or JS in your website or any particular page, you are loading time will certainly increase. In shared hosting, you find out how many CSS / JS files are in your website, if you have more than 5 CSS or JS files put together then obviously your loading time will increase contact your web developer and ask them to reduce the number of CSS JS within 5 to 6.
Too many plugins and add-on (Common Problem in WordPress and Joomla)
This problem is very common in WordPress and Joomla open source CMS. Website administrator browse through Add-ons and Plugins directories of any open source CMS when they see lots of plugins and Add-ons available for free they simply keep adding plugins to the website. When you had too many plugins to your website the loading will certainly increase.
When your website is loaded or any page is loaded each and every plugin installed on your WordPress or Joomla website will be invoked by the Apache. To put it in simple words for every plugin you have installed, your loading time of your website will increase by 2 seconds. So try to avoid installing unnecessary many plugins on your website.
Reduce the number of the images used on your website
For some unknown reasons, customers or website owners or website administrator are obsessed to have too many images in the website, certainly having too many images in your website will not increase the revenue or the profit for your website. If having too many images will help to increase the review of any website then everybody will have hundreds of images. So it is a wrong notion to assume that having too many images will help your website.
Problem-related to a database which might lead to a slow loading of websites for example if the developer doesn't use optimised MySQL query then it will increase the loading time of your website. So you can study on Google about how to optimise MySQL query that will give you enough information. For example, in my SQL server, there is a slow query option is there when you enable slow query option you can know what are the queries are taking more time to execute, find out those slow queries and then optimise it so that your website can go faster.
Whenever you are using select query you have to use select query always with the limit count for example If you want to select a record of matching certain name then you have to write a select query like select only the necessary field from the table where the name is equal to this name and limit is 1 when you use limit in your SQL Query execution will be faster.
Too many Apache connections
Every apache server running in any server will always have a limitation on the number of connections it can accept, for example at any given point of time Apache will serve 250 or 500 or 1024 connections at a given point of time. So if your website is under DDOS attack or denial of service attack or slowris attack then all the HTTP connections of your Web server will be utilised by the attacking parties so your website server will not have the option to serve your customer this will give you impression that your website is loading slow you can find out whether your website is under attack or not by using netstat command available in Linux
Bandwidth limitation applied by hosting provider
Just check with your website provider or hosting provider whether any bandwidth limitation is applied for your hosting or not. If they have applied any limitation on your bandwidth talk to them and upgrade your hosting plan as necessary.
Compressing JS and CSS files
Use plugins available for Cache purpose
Use plugins available for Cache purpose most of the modern content management systems like Wordpress and Joomla comes with a bundle of cache plugin make use of them to give better performance
Go with Virtual Machine from HostingRaja or Cloud HostingRaja from HostingRaja
Go with powerful servers such as HostingRaja cloud or VPS, if you are in shared web hosting then there are certain limitations are applied such as RAM and CPU usage by upgrading to VPS and cloud VM you will have access to more resources to load your outside faster.
Poor coding practice
Myself being a programmer for last 15 years I have seen most of the website Optimisation problem is due to poor coding practice.
Remove the dead source code
Remove the dead source code which is not required in your website it can help you to speed up your website
Use, less content in header section of HTML page
Use, less content on your website mainly within the header section of HTML page, having more content in header section will lead to slow loading of your website
Avoid too many external backlinks
Avoid too many backlinks to external website, having too many external links to a website like Facebook, Twitter or external feeds or RSS in your website will slow down your website loading time
Avg.Load of your server
If the average loading time of your website is higher than 5 to 10, you'll have slow loading websites. In Linux using the top command, you can find out what is the average load of your website. If the average load of your website is more than 20 or 10 then you have to either upgrade the resources required for your website or have a Load Balancer or have multiple instances to serve your request.