Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Implement util.throttle in slider #300

Closed
@ajoslin

Description

@ajoslin

Timeouts can cause a DOM repaint, which kind of defeats the point of why we're using debounce in the first place: to stop the DOM from repainting during expensive operations!

We should just make a method that checks the current time versus the last time the function was called, and uses that to determine whether it should call again.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions