Skip to content

Performance improvement suggestions #16

@evolutionjay

Description

@evolutionjay

In this line
https://github.com/johnpolacek/imagefill.js/blob/master/js/jquery-imagefill.js#L100

setTimeout(checkSizeChange, settings.throttle);

change to requestAnimationFrame will better performance

requestAnimationFrame

https://developer.mozilla.org/zh-CN/docs/Web/API/Window/requestAnimationFrame

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