Add decoding async to images

This commit is contained in:
Pedro Moreno 2023-02-23 20:43:31 +01:00
parent d22bde5d70
commit 7a1a110c0b
2 changed files with 2 additions and 2 deletions

View file

@ -36,7 +36,7 @@
<article class="heading">
{% if image %}
<span class="image featured">
{{ image.cropZoom(1038,437).loading('lazy').html(title, title)|raw }}
{{ image.cropZoom(1038,437).loading('lazy').attribute('decoding','async').html(title, title)|raw }}
</span>
{% endif %}
<div class="title">

View file

@ -28,7 +28,7 @@
{% if image %}
<span class="image featured">
{{ image.cropZoom(1038,437).loading('lazy').html(title, title)|raw }}
{{ image.cropZoom(1038,437).loading('lazy').attribute('decoding','async').html(title, title)|raw }}
</span>
{% endif %}