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

Fix video CLS netting +10 lighthouse points #2750

Merged
merged 5 commits into from
Sep 3, 2024

Conversation

mokimo
Copy link
Contributor

@mokimo mokimo commented Aug 15, 2024

@mokimo mokimo requested a review from a team as a code owner August 15, 2024 13:47
Copy link
Contributor

aem-code-sync bot commented Aug 15, 2024

Copy link

codecov bot commented Aug 15, 2024

Codecov Report

Attention: Patch coverage is 87.71930% with 7 lines in your changes missing coverage. Please review.

Project coverage is 95.88%. Comparing base (3331e11) to head (fdd8edd).
Report is 7 commits behind head on stage.

Files with missing lines Patch % Lines
libs/blocks/figure/figure.js 58.82% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            stage    #2750      +/-   ##
==========================================
- Coverage   95.90%   95.88%   -0.02%     
==========================================
  Files         173      173              
  Lines       46051    46027      -24     
==========================================
- Hits        44163    44131      -32     
- Misses       1888     1896       +8     

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

@mokimo
Copy link
Contributor Author

mokimo commented Aug 15, 2024

Seems like PSI is having a bad day. Can be ignored.

Copy link
Contributor

@overmyheadandbody overmyheadandbody left a comment

Choose a reason for hiding this comment

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

I noticed something interesting on the Bacom page that might deserve another look, although as part of another story, since this is the current behavior on production today as well.

I captured a couple of frames and noticed that:

  • initially the text is on the right side, the left side is empty;
  • the text then gets pushed to the left (CLS?);
  • background gets applied;
  • CTAs slightly shrink, leading to a bit more content jump (CLS?).

Here's a stop motion animation of what's going on on the left side, that's what I wanted to focus on:

Bacom.Video.mov

@mokimo
Copy link
Contributor Author

mokimo commented Aug 15, 2024

@overmyheadandbody did you encounter this on the marquee-cls branch or prod? That's the CLS that should have gotten fixed with this. I can reproduce it on main, but can't reproduce it on the branch anymore 🤔

Any special page you still encounter this on?

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
Copy link
Contributor Author

mokimo commented Aug 16, 2024

@SilviuLCF can you see if you can reproduce what @overmyheadandbody saw? 🤔
I don't think it's a blocker, we can also merge and see in RUM if it still appears.

@overmyheadandbody
Copy link
Contributor

@mokimo - only on Bacom do I see this behavior, both on the before and the after links. All other are very "stable". It's likely there's some sort of override there that should be analyzed as part of a different story, since I suspect it has nothing to do with the video. CC: @SilviuLCF

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.

@mokimo @overmyheadandbody
Cannot reproduce it anymore on after url on bacom.
I will still keep an eye on it.
PR is verified and can be merged to STAGE

@SilviuLCF SilviuLCF self-requested a review August 19, 2024 14:50
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.

@mokimo mokimo added the run-nala Run Nala Test Automation against PR label Aug 19, 2024
@milo-pr-merge
Copy link
Contributor

milo-pr-merge bot commented Aug 19, 2024

Skipped merging 2750: Fix video CLS netting +10 lighthouse points due to failing checks

2 similar comments
@milo-pr-merge
Copy link
Contributor

milo-pr-merge bot commented Aug 20, 2024

Skipped merging 2750: Fix video CLS netting +10 lighthouse points due to failing checks

@milo-pr-merge
Copy link
Contributor

milo-pr-merge bot commented Aug 21, 2024

Skipped merging 2750: Fix video CLS netting +10 lighthouse points due to failing checks

@milo-pr-merge
Copy link
Contributor

milo-pr-merge bot commented Aug 22, 2024

Skipped merging 2750: Fix video CLS netting +10 lighthouse points due to failing checks

4 similar comments
@milo-pr-merge
Copy link
Contributor

milo-pr-merge bot commented Aug 24, 2024

Skipped merging 2750: Fix video CLS netting +10 lighthouse points due to failing checks

@milo-pr-merge
Copy link
Contributor

milo-pr-merge bot commented Aug 25, 2024

Skipped merging 2750: Fix video CLS netting +10 lighthouse points due to failing checks

@milo-pr-merge
Copy link
Contributor

milo-pr-merge bot commented Aug 31, 2024

Skipped merging 2750: Fix video CLS netting +10 lighthouse points due to failing checks

@milo-pr-merge
Copy link
Contributor

milo-pr-merge bot commented Sep 1, 2024

Skipped merging 2750: Fix video CLS netting +10 lighthouse points due to failing checks

@milo-pr-merge
Copy link
Contributor

milo-pr-merge bot commented Sep 2, 2024

Skipped merging 2750: Fix video CLS netting +10 lighthouse points due to failing checks

mokimo and others added 5 commits September 2, 2024 10:27
* 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
@milo-pr-merge
Copy link
Contributor

milo-pr-merge bot commented Sep 3, 2024

Skipped merging 2750: Fix video CLS netting +10 lighthouse points due to failing checks

@mokimo mokimo merged commit 8df386c into adobecom:stage Sep 3, 2024
11 of 12 checks passed
@mokimo mokimo mentioned this pull request Sep 3, 2024
mokimo added a commit that referenced this pull request Sep 4, 2024
mokimo added a commit that referenced this pull request Sep 4, 2024
Revert "Fix video CLS netting +10 lighthouse points (#2750)"

This reverts commit 8df386c.
elan-tbx pushed a commit that referenced this pull request Sep 9, 2024
Revert "Fix video CLS netting +10 lighthouse points (#2750)"

This reverts commit 8df386c.
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.

4 participants