Website & Webflow SEO Optimization: Images

Website & Webflow SEO Optimization: Images

In this tutorial we will be talking about errors that come up during website testing in the Google PageSpeed Insight.

Largest Contentful Paint element

It is the largest element seen on the page after loading (before scrolling). Most often this element is an image. Let's make sure the image is properly set:

  • Make sure the image is optimized (WebP)
  • Has the right width and height in HTML
  • Loading eager instead lazy
  • Has ALT tag

Don't do it this way

<img src="image.png" loading="lazy" alt="…">

Do it this way

<img src="image.webp" loading="eager" alt="This is ALT tag" width="200" height="200">

Loading images Eager vs Lazy

General recommendation is loading all the images on the website on lazy mode except all the images above the fold.

Above the fold is the 1st sections your visitors will see (sometimes called "hero section"). Images above the fold are the 1st visuals your visitors will check. Probably even the 1st comprehension of what if your business about. Visitors also have attention span of 4 seconds on average. Hence for this important section you must choose a great image that explains your business and you don't want to delay this interaction any longer.

Images bellow the fold are not visible before the visitor scrolls into the view. Once in the view then the image has to be seen. However there are more important things to be loaded before all the images (such as all the javascript libraries). Sometimes users not even scroll all the way in which makes for unnecessary data transfer. With the amount of information being send via optic cables under the Atlantic Ocean there is data to be saved. There is energy to be saved too. Most importantly visitor's mobile data are going to be saved if we don't load the images till the visitor scrolls into the view.

Images above the fold

<img src="image.webp" loading="eager">

Images bellow the fold

<img src="image.webp" loading="lazy">

ALT tag

The ALT tag contains the alternative text for an image or a visual on a web page.

ALT tag is a human optimized description of the image. It has two purposes:

  1. Screen reader can read it to blind visitors
  2. Search engine can rank it in image search

General recommendation for writing ALT tags: Don't overoptimize but put some keywords in it. Write it for humans so you can easily read. My ALT tags are for example: "Photo of the team during web design sprint at our client office in Miami"

Serve images in next-gen formats

This error very often comes in the Google Developer Console with many even established companies.

To solve it:

  • Open TinyPNG 
  • Switch to "Convert my images automatically"
  • Choose "WebP"
  • Drag and drop or select your images
  • Download them to your computer
  • Upload to the website
A gif showing where to click on TinyPNG website to export output in WebP
On TinyPNG website click on Convert my images automatically and WebP

In Webflow you can do optimize images on 2 clicks

  • Simply open the photos or cmd + J
  • Select images you want to optimize
  • Little trick: in the search write PNG or JPG to quickly find the images in non-next-gen format
  • Click "Compress"
A gif showing how to select images in Webflow and compress them into next-gen WebP format
How to select images in Webflow and compress them into next-gen WebP format
Subscribe to newsletter

Subscribe to receive the latest blog posts to your inbox every week.

By subscribing you agree to with our Privacy Policy.
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Website pre-launch checklist

69 steps pre-launch checklist is the most complex checklist developed by years of experience in Karpi Studio.

You will find how to test and fix:
- loading speed issues,
- responsivity issues on all current devices,
- SEO issues,
- and many more.

€30 Now: €9.00
Check it now

Suggested articles