Why Is My Website Slow?

Why Is My Website Slow? featured image
(Last Updated On: December 13, 2017)

This is a question we are asked by people on a regular basis: “Why is my website slow?”

It is something that is becoming increasingly important in this “I want it now” world we live in, too, as people are prepared to wait only fractions of a second to be delivered the content they were looking for – slow websites risk seeing the little “x” hit before they ever get the chance to deliver their message!

Worse, search engines like Google know that slow websites are of less interest to the population at large, and so punish them with poor search engine rankings, making your slow website even less likely to reach that Google searcher you wanted to sell your products and services to.

So what can be done about it? And, why is your website so slow?

Well, the answer is usually a combination of things (isn’t it always!). The main things that a website must do have to be considered. When a browser makes a call for a website, the following things take place (this is simplified!):

  1. Browser asks network “what is at this domain address”;
  2. Network points to DNS server;
  3. DNS server routes request to web server;
  4. Web server renders page (if dynamic) and delivers HTML and files back to the browser;
  5. Information is rendered by user’s browser into the website you see before your eyes.

There are a lot of steps there, yet this can be achieved on websites Silicon Dales have set up in 0.3 seconds. How? By making each step of the way as streamlined as possible.

The simplest way for you to increase the speed of your pageloads is to make sure the file size is as low as possible – the information being transferred will exit your web server and enter your local machine faster if it is small.

Use Gzip or mod deflate to shrink HTML, JS, and CSS files.

Minify and remove whitespace wherever present to get rid of those unneccessary kilobytes.

Optimize images to make them as small as possible, and serve static content, like images, from a cookieless domain.

Also serve static files from a CDN (content distribution network) to allow multiple elements to download faster – browsers only download so many items from one location, so get things flying along in parallel by serving images, etc, from another domain.

Make your web server faster – by upgrading it – though this (expensive) resort should be a last one!

Use caching across your site. Try things like opcode caching too, with Xcache, APC, and HTTP accelerators like Varnish. If you use WordPress, install, and configure W3 Total Cache.

If your visitors come from multiple countries and continents, consider hosting in the cloud, or co-location, to reduce network latency.

There are more steps that can be taken, but once you have done the above, you should notice some improvement. If you have major problems, and the above looks okay, you could have network issues – make sure your DNS is setup correctly, and, if it is, next consider moving hosts. Try something quick and cheap to setup like Amazon’s AWS to test, if your scripts and websites load quickly there, then your hosting could be the culprit.

We take all of the above steps – and more – for our Enterprise Level clients, to make sure their mission critical business websites stay online, and render faster than the rest. Contact us today if you’d like Silicon Dales to review and quote for development on your existing business website.

2 thoughts on “Why Is My Website Slow?

  1. Please note, however, that the myriad reasons why a website could be slow are many and varied – there is no possible way to tell without conducting some kind of review on the website in question – the above post is simply a quick guide to some useful pointers.

    Large images are probably the culprit when things are really slow – try just a page of text and see what happens. To test out on a server other than your computer, use:

    http://pingdom.com/

  2. As a for example, you can see that this web page (dynamic) renders in just over half a second using Pingdom:

    http://tools.pingdom.com/fpt/#!/BAfpKvJJd/http://silicondales.com/blog/why-is-my-website-slow/

    For the sake of clarity, because we rarely receive many visits, we do not use any caching (yet) on the Silicon Dales website, we will later (for benchmarking) run some caching, and setup for mega-speed – if you’d like us to do that now so you can see the results, just leave a comment! 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

Silicon Dales