-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Labels
Description
Give a brief about the bug ✍️
The code in mouseEffect.js creates a new ripple element on every mouse movement, leading to potential memory leaks and performance degradation.
What is the expected behavior? 🤔
The ripple effect should only be triggered under specific conditions, such as throttled mouse movements or click events, to avoid performance issues and memory leaks.
Provide step by step information reproduce the bug 📄
- Observe Performance: Move the mouse rapidly across the screen and observe the performance. Note any lag or increased memory usage.
- Check Element Creation: Monitor the number of DOM elements created during mouse movement. Use browser developer tools to inspect the DOM.
- Implement Throttling: Introduce a throttle function to limit the number of ripples created.
- Validate Improvement: Test the application again to ensure improved performance and reduced memory usage.
Select program in which you are contributing
GSSoC24
Code of Conduct
- I follow CONTRIBUTING GUIDELINE of this project.