Skip to content

Commit

Permalink
Fetch the header (LCP) image at high priority (Shopify#1918)
Browse files Browse the repository at this point in the history
  • Loading branch information
siakaramalegos authored Sep 30, 2022
1 parent 09a9d96 commit f4497fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sections/main-article.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
sizes="(min-width: {{ settings.page_width }}px) {{ settings.page_width | minus: 100 }}px, (min-width: 750px) calc(100vw - 10rem), 100vw"
src="{{ article.image | image_url: width: 1100 }}"
loading="eager"
fetchpriority="high"
width="{{ article.image.width }}"
height="{{ article.image.height }}"
alt="{{ article.image.alt | escape }}">
Expand Down

0 comments on commit f4497fc

Please sign in to comment.