Changed lazyloading with highest fetchpriority in category header#587
Changed lazyloading with highest fetchpriority in category header#587Hlavtox merged 1 commit intoPrestaShop:developfrom
Conversation
There was a problem hiding this comment.
fetchpriority is not available in Firefox, but I don't think it's a blocker, since the image is above the fold I think the change is legit
edit: I wonder if we could mix loading="eager" and this? 🤔
I'll ping other people to get some other opinions
cc @ga-devfront @tblivet @Hlavtox @SharakPL
|
Interesting, does this really benefit all devices? Do we really feel a change in performance? as @kpodemski suggests I think we can mix that with |
Hlavtox
left a comment
There was a problem hiding this comment.
We can also add loading eager 👍
|
I also agree with adding loading eager 👍 |
Hi guys, loading eager is the default value so its redundant to add it: https://www.w3schools.com/tags/att_img_loading.asp We can just add fetchpriority. |
Common scenario
We have to load an header image, the LCP of the page depends on it, so we cannot load it in lazy loading mode but in fetchpriority=high, so in network order load of resources we get an highest priority and a fastest rendering.
Additional Resources
https://web.dev/articles/fetch-priority