Skip to content

Throttle/debounce support #3

@nbubna

Description

@nbubna

Those needing to handle repeating events like "resize" typically want/should restrict execution. I'm envisioning a syntax like:

Eventi.on('resize%200', ...);// trailing execution
Eventi.on('resize%-200', ...);// leading execution

Should be fairly straightforward to implement via parser and on:handler hooks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions