Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Fetch Priority to Product Summary Image #388

Closed

Conversation

gab-monteiro
Copy link

@gab-monteiro gab-monteiro commented Dec 8, 2023

What problem is this solving?

The aim of this change is to enhance the LCP performance metric on search pages for both desktop and mobile devices.

This is achieved by setting the fetchpriority property of Shelf Images, allowing users the freedom to decide the priority they desire.

Motivation

The inclusion of this option aims to provide flexibility and control over loading showcase images. By introducing the ability to define image search priority, users will have the option of deciding whether or not to use their options, adapting loading according to the needs of the context of use.

Proposed Implementation

The 'fetchPriority' property will be an additional option for showcase images. It will accept values ​​that represent search priorities, allowing developers and users to choose between "low", "auto" and "high" image loading priorities.

Conclusion

Adding 'fetchPriority' support to storefront images will provide a flexible and controlled way of handling image loading, improving both performance and user experience.

I am available for any further questions regarding how it is implemented and I am also leaving 2 reports from the lighthouse (mobile) with the impacts of our performance with the prop and what it is currently like.

lighthouse-loja.electrolux.com.br-mobile-atualmente.pdf
lighthouse-loja.electrolux.com.br-mobile-com-a-prop.pdf

How to test it?

Aplicado-na-loja

Aplicado-na-loja-segunda-opção

Workspace

Screenshots or example usage:

How does this PR make you feel? 🔗

@gab-monteiro gab-monteiro requested review from a team as code owners December 8, 2023 19:33
@gab-monteiro gab-monteiro requested review from brunoamui, gvc, RodrigoTadeuF and ArthurTriis1 and removed request for a team December 8, 2023 19:33
Copy link
Contributor

vtex-io-ci-cd bot commented Dec 8, 2023

Hi! I'm VTEX IO CI/CD Bot and I'll be helping you to publish your app! 🤖

Please select which version do you want to release:

  • Patch (backwards-compatible bug fixes)

  • Minor (backwards-compatible functionality)

  • Major (incompatible API changes)

And then you just need to merge your PR when you are ready! There is no need to create a release commit/tag.

  • No thanks, I would rather do it manually 😞

@vtex-io-docs-bot
Copy link

Beep boop 🤖

Thank you so much for keeping our documentation up-to-date ❤️

@gab-monteiro gab-monteiro marked this pull request as draft December 8, 2023 19:35
@gab-monteiro gab-monteiro marked this pull request as ready for review December 8, 2023 19:41
@gab-monteiro gab-monteiro requested a review from a team as a code owner December 20, 2023 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant