Skip to content

Reduce getBoundingClientRect() calls #2

@lpimem

Description

@lpimem

Element.getBoundingClientRect() triggers a repaint of the whole dom tree and should be avoided.

Related code:

let rect = e.getBoundingClientRect();

measureSpanToDim(span, doc, (doc: Document, el: HTMLElement)=>{

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions