intershop-pwa icon indicating copy to clipboard operation
intershop-pwa copied to clipboard

perf: load the main product image eagerly on PDP

Open SGrueber opened this issue 4 months ago • 0 comments

  • because it is the LCP on this page

PR Type

[ ] Bugfix [ ] Feature [ ] Code style update (formatting, local variables) [ ] Refactoring (no functional changes, no API changes) [ ] Build-related changes [ ] CI-related changes [ ] Documentation content changes [ ] Application / infrastructure changes [x] Other: Performance improvements

What Is the Current Behavior?

The main product image on PDP is lazily loaded. On mobile devices and also sometimes on desktop this image is the LCP of the product detail page and for performance reasons it should be loaded as fast as possible.

Issue Number: Closes #

What Is the New Behavior?

The main product image on PDP is loaded eagerly. Especially on mobile devices the LCP will decrease significantly.

Does this PR Introduce a Breaking Change?

[ ] Yes [x] No

Other Information

AB#100535

SGrueber avatar Oct 11 '24 08:10 SGrueber