Skip to content

Feature Performance

tempus2016 edited this page Jun 24, 2026 · 1 revision

Performance & swipe options

unmount_hidden

By default Tabdeck keeps every tab's card mounted (so state and scroll position survive switching). For memory-heavy dashboards (lots of cameras/maps), set unmount_hidden: true to keep only the active tab's card in the DOM.

type: custom:tabdeck-card
unmount_hidden: true
tabs: [ ... ]
  • Only the active panel renders its card; switching re-attaches the target card.
  • Trade-off: hidden cards aren't kept warm, so re-showing rebuilds the DOM. Combine with lazy to also defer the first build.

swipe_wrap

With swipe enabled, swipe_wrap: true makes swiping past the last tab wrap to the first (and vice-versa) instead of stopping at the ends.

type: custom:tabdeck-card
swipe: true
swipe_wrap: true
tabs: [ ... ]

Under the hood

The tab bar's resize handling is debounced to one reposition per animation frame, so the indicator stays smooth during window/layout changes.

Both options are available in the visual editor (Unmount hidden tabs, Swipe wraps around ends).

Clone this wiki locally