Website loading all blog posts' thumbnails on DevTools (Even though are not showing)

Hi everyone!

I’ve been trying to optimise my site speed for a long time, and now I’m getting to the point where I’m achieving 52 on Mobile/84 on Desktop using PageSpeed Insights, which is not too bad for a News/Articles website, but can be improved.

These past days I’ve been running some DevTools tests, and the website is loading literally all the thumbnails of all the posts, even though they are not showing on the Homepage anymore. I’m not too sure if that’s normal, but seems to be slowing the loading times severely.

Do you guys know how to correct that?

The thing with my website is that I’m using dynamic style over div for the thumbnails instead of an image itself.

Here is my public share link: LINK
(how to access public share link)

Unfortunately if you’re just using display: none on a standard image element then this won’t necessarily stop them from loading in the DOM—this only works when using background images.

I can’t see how you’ve setup your site so that may not be the case, but if you include a published link of the project (however a read-only link is always preferred), I can take a closer peek :+1:

Hey @sextamarcha , are the images setup by the image element or are they background images of the respective div element?

Back in 2020, Webflow announced that all image element images are going to be set as Lazy Load on default EXCEPT for background images.

Hi! @imtiazraqib, the images are setup by background images of a respective div element, using the Dynamic Style linked to my CMS. Would you recommend to change that?

I suppose so. Background images with Webflow do not lazy load by default. If you set them using an image element, then the images would lazy load by default, which means they will only start to load when they are required to.

This could potentially save you some time.