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
Description
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.