Skip to content

Fixing throttling behavior

Latest
Compare
Choose a tag to compare
@lafikl lafikl released this 02 Sep 00:14
· 11 commits to master since this release

In the earlier version of Steady.js there is a problem in the throttle function which is that it's always delaying the executing of the handler ( the default delay is 100ms), this is a killer for the user perception of performance.

In this release the handler will run immediately when called the first time, after that it will start throttling the handler.

NOTE: You don't need to update your code, this is a change in the behavior not the API itself.

Take a look at the changelog section http://lafikl.github.io/steady.js/

Enjoy your jank-less browsing!