Skip to content

[Bug]: Memory Leak and Performance Issues  #68

@Swapnilden

Description

@Swapnilden

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 📄

  1. Observe Performance: Move the mouse rapidly across the screen and observe the performance. Note any lag or increased memory usage.
  2. Check Element Creation: Monitor the number of DOM elements created during mouse movement. Use browser developer tools to inspect the DOM.
  3. Implement Throttling: Introduce a throttle function to limit the number of ripples created.
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions