Skip to content
This repository was archived by the owner on Jun 6, 2019. It is now read-only.
This repository was archived by the owner on Jun 6, 2019. It is now read-only.

A throttle function should be added #1

@afroald

Description

@afroald

This function would wrap another function preventing it to be run more than once every frame. This would improve the API for event handlers.

I want to be able to do this:

window.onscroll = Rafman.throttle(function(event) {

});

It should use Rafman.once() to make sure the event handler doesn't run more than once every frame.

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