Let's talk about why the speed of your website matters so much. We've all probably been on a website that takes ages to load. When this happens, you probably leave the website and click the next one Google shows you, right?
So, that's one reason why speed matters. And let's talk about Google because your website won't be the next one Google shows to users if it's slow. Google wants to display the best websites to users, so you continue using Google. After all, Google is an advertising company, and a good advertising company needs the best content to keep people using its platform so they can advertise to you.
When we create our websites, we conduct regular checks using Google's Page Speed Check tool. It's a free tool which checks for Performance, Accessibility, SEO and Best practices. All these are important, but let's focus on Performance, as this reflects the overall speed of your website. The tool will display what might be affecting your performance, such as image formats.
We always use WebP images, which help reduce the size but keep the quality of the image. You can find more information on WebP here
We also make sure the layout and structure of the website are coded correctly. This means only loading the things we need, when we need them. You might load all your files and CDNs in the head tag, but wrapping these in an 'if true' statement, then declare the variable on each page before the head tag will help improve your speed.
Here is an example
head.php if($use_popup == true){ <script src="cnd.yourscript"></script> } index.php $use_popup = true; include_once("head.php");
We use PHP, so our example above is in PHP. However, this method can be used with any code language.
If you're wanting a rocket fast website, take a look at our Website Design services, we're pretty good at making websites!