Skip to content

Debounce window size detection  #377

Open
@ErfanEbrahimnia

Description

@ErfanEbrahimnia

Checking the window size with the "resize" event is a performance issue. A much better alternative is to debounce the size detection using requestAnimationFrame.
Example: https://github.com/pazguille/viewport

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