Skip to content

Commit

Permalink
refactor: changed size and added fetchpriority
Browse files Browse the repository at this point in the history
  • Loading branch information
buggyzap authored Jan 23, 2024
1 parent 51ece31 commit cd29102
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/catalog/_partials/category-header.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<picture>
{if !empty($category.image.large.sources.avif)}<source srcset="{$category.image.large.sources.avif}" type="image/avif">{/if}
{if !empty($category.image.large.sources.webp)}<source srcset="{$category.image.large.sources.webp}" type="image/webp">{/if}
<img src="{$category.image.large.url}" alt="{if !empty($category.image.legend)}{$category.image.legend}{else}{$category.name}{/if}" loading="lazy" width="141" height="180">
<img src="{$category.image.large.url}" alt="{if !empty($category.image.legend)}{$category.image.legend}{else}{$category.name}{/if}" fetchpriority="high" width="{$category.image.large.width}" height="{$category.image.large.height}">
</picture>
</div>
{/if}
Expand Down

0 comments on commit cd29102

Please sign in to comment.