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

🐛 [BUG] - Advice: Animation impacting Contentful Paint performance for SEO Article page #640

Open
alphonsotran opened this issue Jul 8, 2024 · 2 comments
Labels
bug Something isn't working swp

Comments

@alphonsotran
Copy link

Describe the bug

We've noticed a small issue affecting our SEO-focused Article pages. After running tests, it appears that the fade-in animation is blocking the LCP delaying the render of the hero image in the SEO Article page and impacting the Performance score. Here is a sample:

Performance score with animation

Performance score with animation

Performance chart with animation

Performance chart with animation

We removed the feature here in this PR and noticed an improvement to the score. From our initial thoughts, it seems like the animation timing is tied into when the LCP is completed. It also seems like it only impacts the score above the fold.

Performance score after animation removal

Performance score after removing animation

Performance chart after removing animation

Performance after modification

We were wondering if Primer-Brand team has any suggestions on how we can improve the performance of the page while retaining or modifying the animation. We don't mind opting out of the animation in the meantime. Thanks!

Reproduction steps

For the Article Page with animation
1. Go to `https://github.com/resources/articles/devops/continuous-integration?_features=contentful_lp_seo_pages`
2. Open Lighthouse tab
3. Set Categories to "Performance
4. Click on "Analyze page load" 


For the Article Page without animation
1. Go to `https://github.com/github/github/pull/331566` and deploy to review-lab
2. Repeat steps 1-4 above replacing the domain with the review-lab's domain.

Expected behavior

Performance score is in the 90-100 range with animation.

Screenshots

No response

Browsers

Chrome

OS

No response

@alphonsotran alphonsotran added the bug Something isn't working label Jul 8, 2024
@rezrah rezrah added the swp label Jul 16, 2024
@rezrah
Copy link
Collaborator

rezrah commented Jul 16, 2024

Hey @alphonsotran 👋 - we've reviewed your request at Primer Brand office hours on 16 July.

  • For the time being, we recommend disabling the animation until we're able to perform an audit on our animation system.
  • Before we do that audit, could you please move the SEO pages over to reflect the Phase 2 visuals? This revision features different animations such as parallax effects, whereas the one you shared is Phase 1.
  • From the reports you've provided there's a notable difference in CLS, which could be attributed to the transition value incorrectly referencing transforms. We'll look into this as part of our audit.

@alphonsotran
Copy link
Author

I'll go ahead and disable the animations. We have begun phase 2 visuals now that phase 1 has wrapped up, so we'll be working on that in the next few sprints. Thanks @rezrah!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working swp
Projects
None yet
Development

No branches or pull requests

2 participants