dotcom-rendering
dotcom-rendering copied to clipboard
`Card` uses a `picture` tag for images
A picture
tag is preferable to an img
tag for lots of reasons. Now that DCR is able to create its own sources we have the flexibility to do better.
Depends on #4752 for image optimisation
Depends on https://github.com/guardian/dotcom-rendering/issues/5121
Ahead of starting this work we need to refactor onwards such that we stop client side rendering Card
. If we want this component to import and use Picture
then it can only be executed on the server, where the salt is available.
An alternative to using Picture
is creating a component specifically for fronts: FrontPicture
introduced in #6065
Replaced by https://github.com/guardian/dotcom-rendering/issues/6062