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 %}
diff --git a/templates/partials/miniposts.html.twig b/templates/partials/miniposts.html.twig index b99f541..413492d 100644 --- a/templates/partials/miniposts.html.twig +++ b/templates/partials/miniposts.html.twig @@ -38,7 +38,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/partials/simplesearch_item.html.twig b/templates/partials/simplesearch_item.html.twig index 2ffe013..5cb59b5 100755 --- a/templates/partials/simplesearch_item.html.twig +++ b/templates/partials/simplesearch_item.html.twig @@ -5,7 +5,7 @@ {% if thumb %}
- {{ thumb.loading('lazy').html(title,title)|raw }} + {{ thumb.loading('lazy').attribute('decoding','async').html(title,title)|raw }}
{% endif %}
diff --git a/templates/portfolio.html.twig b/templates/portfolio.html.twig index d96506d..220281b 100755 --- a/templates/portfolio.html.twig +++ b/templates/portfolio.html.twig @@ -40,7 +40,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 %} @@ -54,7 +54,7 @@ {% set item_image = page.media[item.image] %} {% set item_title = item.title %} {% set item_desc = item.description %} - {% set thumbnail = item_image.cropZoom(thumb_w, thumb_h).attribute('itemprop','http://schema.org/image').html(item_title,item_title) %} + {% set thumbnail = item_image.cropZoom(thumb_w, thumb_h).loading('lazy').attribute('decoding','async').attribute('itemprop','http://schema.org/image').html(item_title,item_title) %}