Skip to content

Performance problems caused by use of offsetWidth #2434

@ellisjas

Description

@ellisjas

offsetWidth and offsetHeight both cause the browser to recalculate the layout, leading to performance problems.

Would be great to see these functions replaced by something more performant, e.g. the ResizeObserver API.

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