What does the image decoding attribute actually do?
https:/
So use it on your
<img>
elements if you want. It's maybe good that image components for libraries use this, or that platforms like WordPress set it by default but if you haven't used it on your site (like I haven't on this blog), then don't expect it to magically speed up your images to a noticeable degree. Other attributes likeloading=lazy
(on offscreen images only please!), andfetchpriority=high
(on important images only!) will have a much larger impact. As will ensuring your images are not so big that decoding times become a problem. So prioritise those first before worrying about this micro-optimisation.
-
older link:
Maps Distort How We See the World -
newer link:
Permission