Skip to content

suggestion: Use requestAnimationFrame instead of window.onresize. #12

@ghost

Description

In some of my personal apps, I've noticed that making an animation loop with requestAnimationFrame and detecting window size inside there then updating stuff seems to be smoother than relying on window.onresize (https://github.com/sfirrin/Clean-Google-Calendar/blob/master/main.js#L37).

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