ResizeObserver is fun | JSer - a lot of Web APIs

Опубликовано: 19 Октябрь 2024
на канале: JSer
480
13

ResizeObserver allows us to easily detect element size changes without worrying about the performance. The callbacks are invoked after layout and before paint, but it has nice mechanism to prevent infinite loop.

Hi I'm a JavaScript engineer who is not good at algorithms,
and currently practicing leetCode & BFE.dev. If you are interested, maybe we can learn together.

support me: https://www.buymeacoffee.com/jser