diff --git a/templates/default.html.twig b/templates/default.html.twig index 391a2ed..60e8fa0 100755 --- a/templates/default.html.twig +++ b/templates/default.html.twig @@ -30,7 +30,7 @@ {% if image %} - {{ image.cropZoom(1038, 437).loading('lazy').html(title, title)|raw }} + {{ image.cropZoom(1038, 437).loading('lazy').attribute('decoding','async').html(title, title)|raw }} {% endif %} diff --git a/templates/modular/banner.html.twig b/templates/modular/banner.html.twig index cc69055..1c8d6a2 100644 --- a/templates/modular/banner.html.twig +++ b/templates/modular/banner.html.twig @@ -19,7 +19,7 @@ {% if image %} - {{image.loading('lazy').html(title,title)|raw}} + {{image.loading('lazy').attribute('decoding','async').html(title,title)|raw}} {% endif %} diff --git a/templates/modular/features.html.twig b/templates/modular/features.html.twig index f29c7e7..ce90182 100644 --- a/templates/modular/features.html.twig +++ b/templates/modular/features.html.twig @@ -12,7 +12,7 @@ {% if image %} - {{ image.cropZoom(1038,437).loading('lazy').html(title, title, 'image featured')|raw }} + {{ image.cropZoom(1038,437).loading('lazy').attribute('decoding','async').html(title, title, 'image featured')|raw }} {% endif %} {{ page.content|raw }} diff --git a/templates/partials/archives.html.twig b/templates/partials/archives.html.twig index 99a3215..ebf11ef 100644 --- a/templates/partials/archives.html.twig +++ b/templates/partials/archives.html.twig @@ -16,7 +16,7 @@ {% endif %} - {{ image.cropZoom(64,64).quality(60).loading('lazy').html(title,title)|raw }} + {{ image.cropZoom(64,64).quality(60).loading('lazy').attribute('decoding','async').html(title,title)|raw }} diff --git a/templates/partials/blog_item.html.twig b/templates/partials/blog_item.html.twig index f3f17bd..82afdfa 100644 --- a/templates/partials/blog_item.html.twig +++ b/templates/partials/blog_item.html.twig @@ -47,7 +47,7 @@ {% if image %} - {{ image.cropZoom(1038,437).loading('lazy').html(title, title)|raw }} + {{ image.cropZoom(1038,437).loading('lazy').attribute('decoding','async').html(title, title)|raw }} {% endif %}