Skip to content
Discussion options

You must be logged in to vote

Hi,

With fetchpriority: high the performance improvement on mobile is significant. Currently, the only solution is to do it manually by editing the index.hbs file of the theme.

In practice, you need to locate the hero image section and add the fetchpriority option to the <img> tag.

In the Lignes theme, the issue is more complicated because it uses a slider, and fetchpriority="high" should only apply to the first slide image, not the subsequent ones.

In index.hbs around line 72, you’ll find the code to modify like this:

{{#checkIf @index '==' 0}}  
    {{ lazyload "eager" fetchpriority="high"}}  
{{else}}  
    {{ lazyload "lazy" }}  
{{/checkIf}}

This will correctly assign fetchpriority="…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@treelistener
Comment options

@treelistener
Comment options

Answer selected by treelistener
Comment options

You must be logged in to vote
2 replies
@bobmitro
Comment options

@treelistener
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants