img add fetchpriority #2287
-
|
Hi |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
|
Hi, With In practice, you need to locate the hero image section and add the In the Lignes theme, the issue is more complicated because it uses a slider, and In {{#checkIf @index '==' 0}}
{{ lazyload "eager" fetchpriority="high"}}
{{else}}
{{ lazyload "lazy" }}
{{/checkIf}}This will correctly assign P.S. Consider using theme overrides to preserve your changes after future updates: https://getpublii.com/dev/theme-overrides/ |
Beta Was this translation helpful? Give feedback.
-
|
@bobmitro Is it possible to add and integrate |
Beta Was this translation helpful? Give feedback.
-
|
Hi guys
In the marketplace for paid users there is still followButtons 1.5.5 for download but Publii notification says 1.5.6!
Just to let you know.
All the best
Oliver
|
Beta Was this translation helpful? Give feedback.
Hi,
With
fetchpriority: highthe performance improvement on mobile is significant. Currently, the only solution is to do it manually by editing theindex.hbsfile of the theme.In practice, you need to locate the hero image section and add the
fetchpriorityoption 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.hbsaround 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="…