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

MWPW-156749: Fix video CLS #2849

Merged
merged 14 commits into from
Sep 17, 2024
Merged

MWPW-156749: Fix video CLS #2849

merged 14 commits into from
Sep 17, 2024

Conversation

mokimo and others added 6 commits September 5, 2024 17:16
* fix cls by adding the videoEl without a source

* adapt the video hover and in view port play

* Remove no-lazy and return earlier

* Fix linting issue

* Consolidate duplicated logic

* Move functions into the init function

* Move root margin and use optional chaining

* Only query for the videoEl once
@mokimo mokimo added the run-nala Run Nala Test Automation against PR label Sep 9, 2024
Copy link

codecov bot commented Sep 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.25%. Comparing base (264c998) to head (bea6b25).
Report is 38 commits behind head on stage.

Additional details and impacted files
@@            Coverage Diff             @@
##            stage    #2849      +/-   ##
==========================================
+ Coverage   95.89%   96.25%   +0.36%     
==========================================
  Files         173      238      +65     
  Lines       46316    54296    +7980     
==========================================
+ Hits        44415    52265    +7850     
- Misses       1901     2031     +130     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

This pull request is not passing all required checks. Please see this discussion for information on how to get all checks passing. Inconsistent checks can be manually retried. If a test absolutely can not pass for a good reason, please add a comment with an explanation to the PR.

@mokimo mokimo changed the title Fix video CLS MWPW-156749: Fix video CLS Sep 10, 2024
libs/utils/decorate.js Outdated Show resolved Hide resolved
libs/utils/decorate.js Outdated Show resolved Hide resolved
libs/blocks/video/video.js Outdated Show resolved Hide resolved
libs/utils/decorate.js Outdated Show resolved Hide resolved
Copy link
Contributor

Reminder to set the Ready for Stage label - to queue this to get merged to stage & production.

Copy link

@SilviuLCF SilviuLCF left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@milo-pr-merge milo-pr-merge bot merged commit d4134c8 into adobecom:stage Sep 17, 2024
18 checks passed
@milo-pr-merge milo-pr-merge bot mentioned this pull request Sep 17, 2024
mokimo added a commit that referenced this pull request Sep 18, 2024
mokimo added a commit that referenced this pull request Sep 18, 2024
Revert "MWPW-156749: Fix video CLS  (#2849)"

This reverts commit d4134c8.
mokimo added a commit that referenced this pull request Sep 18, 2024
mokimo added a commit that referenced this pull request Sep 18, 2024
Revert "MWPW-156749: Fix video CLS  (#2849)"

This reverts commit d4134c8.
mokimo added a commit that referenced this pull request Sep 18, 2024
Revert "MWPW-156749: Fix video CLS  (#2849)"

This reverts commit d4134c8.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready for Stage run-nala Run Nala Test Automation against PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants