Resize events in design mode

14 September 2026
Design mode sends your site's scripts a resize event when the page width changes.

A slider or a chart that measures its container lays itself out again when you resize the page in design mode.

The event fires when you drag the page edge, choose a device size or return to the full window width. It runs after the breakpoints switch and the layout settles, so scripts measure the layout you see.

Scripts that read innerWidth or matchMedia still see the browser window, not the page you're resizing.

Open a page from your project, turn on design mode and resize the page.