The use cases for the ResizeObserver API may not be immediately obvious, so let’s take a look at a few practical examples.