getkirby / getkirby.com

Source code and content for the Kirby website
https://getkirby.com
131 stars 266 forks source link

`srcset` refactoring #2321

Closed lukasbestle closed 4 months ago

lukasbestle commented 4 months ago

I noticed that we don't use the srcset attribute on the partner pages at all yet. This causes a performance bottleneck on those pages as the loaded images are commonly way too large.

This PR:

So far we don't use sizes much and I think in many places we don't really need to, but I think especially for the images in columns like here on the partner page and on the love page, it could be useful because the browser otherwise defaults to loading an image for 100vw.

In a later step we could then review all image uses on whether sizes is needed.