Skip to content

Commit 6fc5d71

Browse files
authored
Enhance performance and clean up unused CSS
## v1.3.32 - **Performance: animations pause off-screen.** Flow, LED and battery animations now pause (and state updates are skipped) while the card is scrolled out of view or on an inactive tab. Noticeable CPU/battery saving on mobile and on dashboards with several cards. - **Performance: no redundant DOM writes.** Attributes, text and styles are only written when the value actually changes (~90 SVG writes per update reduced to only the ones that changed). - **Performance: cached text measurements.** Trend-arrow positioning no longer forces a layout on every update. - **Performance: theme only re-evaluated when `hass.themes` changes** (previously on every state update); system colour-scheme changes are still picked up. - Sun ring ticks only redrawn when the lit count changes. - Removed unused defs/CSS (glow filter, sunSpin, srPulse).
1 parent 63488bf commit 6fc5d71

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
## v1.3.32
2+
- **Performance: animations pause off-screen.** Flow, LED and battery
3+
animations now pause (and state updates are skipped) while the card
4+
is scrolled out of view or on an inactive tab. Noticeable CPU/battery
5+
saving on mobile and on dashboards with several cards.
6+
- **Performance: no redundant DOM writes.** Attributes, text and styles
7+
are only written when the value actually changes (~90 SVG writes per
8+
update reduced to only the ones that changed).
9+
- **Performance: cached text measurements.** Trend-arrow positioning no
10+
longer forces a layout on every update.
11+
- **Performance: theme only re-evaluated when `hass.themes` changes**
12+
(previously on every state update); system colour-scheme changes are
13+
still picked up.
14+
- Sun ring ticks only redrawn when the lit count changes.
15+
- Removed unused defs/CSS (glow filter, sunSpin, srPulse).
116
## v1.3.31
217
- Home node icon restored to the default theme colour.
318
## v1.3.30

0 commit comments

Comments
 (0)