Does getting an element's width with ResizeObserver trigger layout/reflow?

后端 未结 0 678
生来不讨喜
生来不讨喜 2021-01-29 17:08

I need to dynamically retrieve an element\'s width.

From what I understand, calling someElement.clientWidth will trigger layout/reflow, which is bad for perf

相关标签:
回答
  • 消灭零回复
提交回复
热议问题