Skip to content

[Issue] Add event listeners passive for fotorama lib improves lighthouse metrics #31140

Closed
@m2-assistant

Description

@m2-assistant

This issue is automatically created based on existing pull request: #31080: Add event listeners passive for fotorama lib improves lighthouse metrics


Description (*)

Improve lighthouse metrics score for fotorama js lib

Screenshot from 2020-11-27 22-30-28

Preconditions

2.4-develop

Steps to reproduce

  1. From Admin Panel, create a product
  2. From Storefront, open the previously created products page
  3. Right-click on the web page and select Inspect to open browsers dev console
  4. Switch to the Lighthouse tab
  5. Click Generate report
    gen_rep
  6. Observe the red scores under Diagnostics

Actual Result

The score for fotorama js lib was red
before2

Expected result

after

Manual testing scenario

  1. From Admin Panel, create a product
  2. From Storefront, open the previously created products page
  3. Right-click on the web page and select Inspect to open browsers dev console
  4. Switch to the Lighthouse tab
  5. Click Generate report
    gen_rep
  6. Observe the red scores under Diagnostics

BEFORE applying changes provided in the PR, the score for fotorama js lib was red
before2

AFTER switching to the PR
after

Metadata

Metadata

Assignees

Labels

Area: Perf/FrontendAll tickets related with improving frontend performance.Component: OtherFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Priority: P3May be fixed according to the position in the backlog.Progress: doneReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S3Affects non-critical data or functionality and does not force users to employ a workaround.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions