From e0e2e109b1987d958e77887bdb5dcb38e6ec33e4 Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Mon, 6 Jul 2026 22:39:05 -0400 Subject: [PATCH] perf(v2): use static background SVG in Firefox to stop GPU repaint The auth_background.svg fallback contains two infinite CSS animations. As a full-viewport background-image under a 28px blur (and re-sampled by every backdrop-filter surface), Firefox's WebRender re-rasterizes the whole viewport every frame, pegging the renderer/GPU. It is worst on pages that fall back to this art (settings, administration) since they call setBgArt(null); other pages show static cover art. Swap to the existing static variant in Firefox only via the @-moz-document url-prefix() hack (the same pattern v1's Auth.vue already uses). Other browsers keep the animation. The BackgroundArt fallback is moved from an inline style into CSS so the override can take effect. Generated-By: PostHog Code Task-Id: d82d41fa-0db7-477d-bb80-fc512558e076 --- .../src/v2/components/AppShell/BackgroundArt.vue | 16 ++++++---------- frontend/src/v2/layouts/AuthLayout.vue | 9 +++++++++ frontend/src/v2/styles/global.css | 14 ++++++++++++++ frontend/src/v2/views/DevicePairShell.vue | 9 +++++++++ frontend/src/v2/views/PairShell.vue | 9 +++++++++ 5 files changed, 47 insertions(+), 10 deletions(-) diff --git a/frontend/src/v2/components/AppShell/BackgroundArt.vue b/frontend/src/v2/components/AppShell/BackgroundArt.vue index ae5f65aad..e71a641f9 100644 --- a/frontend/src/v2/components/AppShell/BackgroundArt.vue +++ b/frontend/src/v2/components/AppShell/BackgroundArt.vue @@ -14,23 +14,19 @@ defineProps<{