How to optimise images for faster loading times on your website
Tips 'n tricks about the web, digital trends, and online marketing
Optimising images is one of the most important steps to make your website faster. Visitors have little patience these days; if your website takes too long to load, they are gone in no time. In addition, loading speed also affects your SEO ranking. Large, non-optimised images can slow down your site considerably. Fortunately, there are many ways to optimise your images without sacrificing quality. In this blog post, you will learn how to optimise images for faster loading times on your website.
Why are faster load times important?
Before we start with the practical tips, it is important to understand why faster load times are essential. Faster websites provide a better user experience, higher SEO rankings and better conversion rates. Google values loading speed, especially on mobile devices. The faster your website loads, the more likely visitors are to stay longer and take more actions, such as filling in a form or making a purchase.
1. Choose the right file format
The first step in optimising your images is choosing the right file format. There are several image formats suitable for websites, and each has its pros and cons:
- JPEG: Ideal for photos and images with many colours. The file is relatively small and the quality can be slightly adjusted.
- PNG: Suitable for images with transparency or images where details must be preserved. PNG files are often larger than JPEGs.
- WebP: This is a modern file format developed by Google. It offers an excellent balance between file size and image quality and is supported by most modern browsers.
- SVG: This format is perfect for logos and simple images or icons. SVG files are vector graphics, which means they can be scaled infinitely without loss of quality.
Use WebP or SVG whenever possible for best results in terms of loading speed and image quality.
2. Adjust the size of your images
Many websites load images that are much larger than necessary, resulting in unnecessarily large files. By resizing images to the right dimensions for your website, you can significantly reduce the file size. For example, you don't need an image 3,000 pixels wide if the space in which it is displayed is only 800 pixels wide.
How do you adjust the dimensions?
Use image editing software like Photoshop or free tools like GIMP to manually crop and resize images.
Automate the process with plugins like Smush for WordPress, which automatically resize images at the time they are uploaded.
3. Compress your images
After resizing, the next step is to compress your images. Compression reduces file size without a noticeable loss of quality. There are two types of compression:
- Lossy compression: This method removes some details from the image, making the file size smaller, but this can lead to quality loss.
- Lossless compression: This involves reducing the file size without any loss of quality. The results are often less dramatic than with lossy compression, but the image quality remains intact.
Tools for compression:
- TinyPNG and TinyJPG: These online tools use lossy compression to reduce PNG and JPEG files.
- ImageOptim: A popular desktop app for Mac users to compress images losslessly.
- Kraken.io: An advanced online tool that supports both lossy and lossless compression and offers batch processing.
4. Use lazy loading
Lazy loading is a technique that loads images only when they come into view, rather than immediately when the page opens. This can drastically reduce the loading time of your website, especially if you have a lot of images on a single page.
How do you implement lazy loading?
In HTML: add the attribute loading="lazy" to your image tags. This ensures that images are loaded only when the user scrolls to them.
<img src="”voorbeeld.jpg”" alt=""example"" loading="”lazy”">
Via a plugin: For WordPress users, there are several plugins that support lazy loading, such as WP Rocket or Lazy Load by WP Smush.
5. Use a Content Delivery Network (CDN)
A Content Delivery Network (CDN) is a network of servers spread around the world. When someone visits your website, a CDN ensures that images are loaded from the server closest to the user, significantly reducing load times.
Examples of popular CDNs:
- Cloudflare: Offers a free CDN option and is easy to integrate with most websites.
- Amazon CloudFront: A powerful solution for larger websites with global audiences.
- KeyCDN: An affordable option with a focus on usability.
6. Remove unused images
Removing unused images on your server is a simple but often overlooked step. Unused images take up unnecessary space and can affect the speed of your website, especially when backing up files. Make sure you regularly clean up your media library to remove unused files.
7. Make use of browser caching
With browser caching, you can ensure that images previously loaded by visitors are displayed faster on the next visit. This avoids having to download the same files over and over again.
How do you set up browser caching?
For WordPress users: use a plugin such as W3 Total Cache or WP Super Cache to set up caching.
Manually via the server: Add the following code to your .htaccess file (for Apache servers):
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
</IfModule>
This code causes images to stay in the browser's cache for a year.
Conclusion
Optimising images is essential for a fast website and a better user experience. By choosing the right format and file size, compressing images and using techniques such as lazy loading and a CDN, you can significantly reduce your website's load times.
Need help optimising your website or images? Feel free to contact us, and we will be happy to help you!
👉 Funkhaus goes the extra mile for you
We are the all-in-one partner that takes care of everything: from creative web designs to technical optimisations and strategic content. You focus on your business, we take care of the rest.
Send us an email for personal advice
Get in touch, and we'll schedule an appointment soon
👋 Hi, we are there for you!
What our partners say
Domaine de Renesse
We are very happy with the website Funkhaus created for us. The design is modern and attractive, and the user-friendliness (especially for making changes and adding activities ourselves) is excellent. The service is also very pleasant: in case of questions or changes, the response is quick and helpful. In short, a fine cooperation and a result we are proud of.
Giovanni Smet
Great website designer! Direct and fast communication and thinking along to achieve a super result. Do not hesitate to contact him to have your website taken care of.
Elien Degens
I came to you via a good reference to provide my website for e-commerce. Wout thought along with me about the possibilities and offered an ideal solution, taking into account the budget.
Transparent, professional communication and a very high-quality delivery. Thank you for this!
Lisa van Gils
Funkhaus designed our website. They heard us well and translated our wishes into something that suits us perfectly. In the process, they continue to help us with topics that are not 'proprietary' for us such as visibility and marketing. The contact is fluid and good. We are fans!
Emmanuel Verraes
Very hands-on and service-minded! I have been recommended Funkhaus by another customer and I - on turn - highly recommend their services.
wommel94 wommelgem
Quality services that help us find new customers and retain existing ones. Pleasant and efficient cooperation.
Hans Peeters
Perfect guidance to the creation of our new school website!
Good cooperation, quick follow-up.
Yasmine D'hanis
Thanks Funkhaus for the clear view on my website (www.minro-legal.be) ! Thanks to your clear and concrete tips, I was able to make the website a lot more user-friendly. Thanks to you, I have also been able to eliminate errors that had previously gone unnoticed.
Thank you! Definitely highly recommended!
Charlotte Lambrecht - Charlie's Fit Studio
Would you like to have a top website/logo developed?
Then you've come to the right place at Funkhaus!
What I myself find hugely important in a collaboration is good communication. Wout was always very quick in answering my questions and looking for solutions. Everything was always discussed in consultation and there was room for brainstorming and creativity. If something didn't feel 100% right, Wout provided several alternatives until the feeling was completely right. It was also an absolute bonus to receive such positive support as a start-up.
A very nice collaboration resulting in a top website. Go check it out at www.charliesfitstudio.be
Kurt Habraken
Are you looking for a reliable partner to increase your online visibility, are you looking for a partner to get a website built? Wout and the colleagues at Funkhaus are a fine partner to start a project. At first, they listen carefully to what we wanted as customers. Based on this, Wout makes an offer, and after approval, they get to work. During the set-up period, there is frequent contact and consultation so that everything runs smoothly and the outcome is as the customer, us, expected. Even the after-service after delivery, which is invaluable after all, is super.
A fine partner to work with, who doesn't look down on any extra effort either. All this at a fair affordable cost makes absolutely super