Why is my website running slow?

123-reg hosting icon

This FAQ will help you to set up your mailbox with Apple Mail

The below video and step by step instructions will help you learn how to add a mailbox to your Apple Mail email client.


No one likes a slow website and neither do we, so to ensure that your site runs the best it can, you can check out our list below on possible ways on improving its performance and in turn improve its efficiency.

This is not an exhaustive list of actions you can employ to make your site run faster, but should cover some of the basics. You may be able to find some more suggestions by using your favourite search engine.

Please note:Before you begin, please make a backup of your website. This will allow you to revert back, should you need to.


Diagnosis

Modern web browsers allow you to monitor how quickly your web pages load which can help you in identifying items on a page that is loading slow. Some files can be obvious like HTML pages and images and others less so. If someone built your site for you, ask them what the file does if it is loading slow.


You can also use various external tools to assess the performance of your website. These tools will scan your website and identify areas of improvement. There are loads of examples of these kinds of tools online, but a couple of popular ones are GT Metrix and Pingdom.


Further tips

Optimising Images

Your images' file sizes can vary due to the size (resolution) of the image, and the quality of the image. Having an image with a huge file size on your site can dramatically increase loading time and over all site performance, especially for users with a slow internet connection. Thankfully there are some steps you can take to reduce the file size without compromising the quality of the image:

  • Resize it - Use you can simply resize your images correctly using image editing programs like Microsoft Paint or Adobe Photoshop. It's best to have a 480x360 image rather than a 2400x1800 image squashed into a 480x360 space on your web page.
  • Change the image type - The most common image types are JPEG and PNG. Use JPEG for: photographs and complex art. Use PNG for: text, logos, cartoons and simple colours.
  • JPEG Quality Adjustment - Some image editing programs, like Photoshop or Paint.net, allow you to alter the quality of your JPEG images. It can make a difference between a 1MB image or a 380KB image with no noticeable quality difference. Experiment with the settings to see how low you can make the file size go, without losing the image quality.

Enable Gzip Compression

Gzip compression is a feature that compresses the text based files on your site (e.g. HTML, PHP and Javascript files). This means that these smaller chunks can be delivered to your visitors quicker. This is done slightly differently depending on whether you are on a Linux server, or a Windows one:



Extend web browser caching

This method only helps vistors who have visited your site at least once. What this does is extends the amount of time some parts of your site is cached on a visitors computer. Loading cached content is quicker than retrieving it from the server everytime you visit.

Please note:This code is only for Linux servers.


## BROWSER CACHING ##
ExpiresActive On
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 application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
## BROWSER CACHING ##