diff --git a/src/app.ts b/src/app.ts index 31885302..5b3dd715 100644 --- a/src/app.ts +++ b/src/app.ts @@ -979,8 +979,7 @@ export class App extends Protocol { }); }; - sendBodySizeChanged(); - + // ResizeObserver will fire for initial layout and all subsequent changes const resizeObserver = new ResizeObserver(sendBodySizeChanged); // Observe both html and body to catch all size changes resizeObserver.observe(document.documentElement);