Skip to content

Optimize custom cursor performance on scan page #305

@vimzh

Description

@vimzh

Description:
The scan.html page currently uses multiple

elements (22 in total) to render the custom cursor. This approach can impact performance, especially on low-end devices and mobile browsers.

Expected Behavior:
Smooth cursor animation that follows the mouse without lag.
Minimal DOM elements used to achieve the effect.

Proposed Solution:
Replace multiple div elements with a single

or for rendering the cursor.
Use requestAnimationFrame for smooth movement.
Reduce reflows and repaints on hover animations.

Additional Context:
This will improve performance on devices with lower resources.
Should maintain existing hover expand/shrink effects on links and buttons.
Labels:
performance, enhancement, ui

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions