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:
adds srcset support to the partner template and
introduces sizes support for our img helper.
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.
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:
srcset
support to the partner template andsizes
support for ourimg
helper.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 for100vw
.In a later step we could then review all image uses on whether
sizes
is needed.