Skip to content

Optimize Morpher performance for mobile devices#15781

Merged
wackerow merged 1 commit into
devfrom
fix-morpher
Jul 9, 2025
Merged

Optimize Morpher performance for mobile devices#15781
wackerow merged 1 commit into
devfrom
fix-morpher

Conversation

@pettinarip
Copy link
Copy Markdown
Member

Description

  • Fix memory management by using useRef for timeout variables
  • Add accessibility support with usePrefersReducedMotion hook
  • Reduce animation frame rate from 30 to 24 FPS for better performance
  • Implement deferred animation start (2s delay) to improve initial page load
  • Prevent multiple simultaneous animations with proper state tracking
  • Optimize React re-renders by only updating state when text changes
  • Add proper cleanup to prevent memory leaks and runaway animations

Note: part of the efforts to reduce INP and TBT.

@netlify
Copy link
Copy Markdown

netlify Bot commented Jul 3, 2025

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit 73b95a9
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/6866c54d4979a40009ab57b8
😎 Deploy Preview https://deploy-preview-15781--ethereumorg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 46 (🔴 down 7 from production)
Accessibility: 94 (no change from production)
Best Practices: 92 (no change from production)
SEO: 99 (no change from production)
PWA: 59 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@pettinarip pettinarip changed the title Optimize LanguageMorpher performance for mobile devices Optimize Morpher performance for mobile devices Jul 3, 2025
Copy link
Copy Markdown
Member

@wackerow wackerow left a comment

Choose a reason for hiding this comment

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

Awesome, this looks great! Optionally, put up #15783 as a suggestion for potentially fading the word transition with reduced color mode... but may add a touch more bloat that we need/want, so feel free to reject... but this lgtm!

@wackerow wackerow merged commit 12fe1a8 into dev Jul 9, 2025
7 checks passed
@wackerow wackerow deleted the fix-morpher branch July 9, 2025 03:17
@wackerow
Copy link
Copy Markdown
Member

wackerow commented Jul 9, 2025

Noting a bug where the first word duplicates. Unrelated to the PR changes though so brought it in.

This was referenced Jul 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants