Choppy UI on PC after reopening "sleepy" tab

Hi there,

For a few months now, I’ve had an issue where Lovelace gets extremely slow/choppy for a few seconds after switching from another tab. It can last up to 10/20 seconds.

This is only noticeable on PC (Apple Silicon + Firefox, Linux + Firefox). I haven’t noticed it on the native iOS HA app.
It only happens after a long time without viewing the tab.
During the choppy sequence, the dashboard data is not refreshed. Button presses (changing dashboard, …) are not registered, or very late.

After the time period, HA seems to “catch up” and the data refreshes multiple times in the span of 1-2 seconds. Then everything works fine.

However, if I lose patience and force reload the page, it works immediately.

My setup:

  • HA 2026.4.2 (but it occurred on older versions)
  • Card-mod
  • Heavy Bubble card usage (some pop-ups)
  • Heavy Mushroom template cards usage
  • Power Flow Card Plus
  • Apexcharts-card
  • Server is behind CloudFlare and uses an nginx reverse proxy, and I’ve had issues in the past with websocket sessions not resuming when switching from another tab.

Can you help me narrow it down? Thanks!

An example after not visiting the tab for maybe 10 minutes. The chop seems to be proportionate to the inactivity time, so here it only lasts for about 5 seconds:

Screen Recording 2026-04-15 at 08.32.27

It is a setting in Firefox that sleep tabs if they are not in focus.