From 4a289750a137d03d88e6bd026612c34a29baf9dd Mon Sep 17 00:00:00 2001 From: erseco Date: Tue, 28 Jul 2026 16:13:01 +0100 Subject: [PATCH 1/7] Show a loading spinner while an embedded package paints MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The block renders an iframe that has to download, parse and lay out a whole package before anything appears, so a visitor sees an empty bordered frame for a noticeable moment and cannot tell whether it is loading or broken. Large packages make it worse. Cover that gap with a spinner overlaying the frame. It is revealed by the script itself, never server-side, so a visitor without JavaScript never gets an overlay that nothing could clear. It is announced with role="status" so it is not a silent animation, respects prefers-reduced-motion, and clears on the iframe's load event plus a short delay, because the theme builds its navigation right after load and clearing immediately can uncover a frame that is still blank. A 20 s timeout is the backstop for an embed whose load event never fires. The behavior ships as one enqueued asset rather than an inline