The funny thing is: a zoom action and an orientation change both change the dimensions of the visual viewport. Thus you’d say they’d be treated the same — but they aren’t.
Toolbars, keyboards, and the viewports
Peter-Paul Koch
306

Whether or not this is true depends on the viewport tag in use, right? When using a recommended mobile viewport tag, an orientation change (at least 90° on a non-square display) changes the layout viewport size. And so firing a resize event makes sense. I can believe other cases get a spurious resize though. Orientation change is expensive enough that a single resize event isn’t going to cause any problems (unlike zooming which happens at 60fps).

Show your support

Clapping shows how much you appreciated Rick Byers’s story.