thomasloven / lovelace-fold-entity-row

🔹 A foldable row for entities card, containing other rows
MIT License
561 stars 37 forks source link

Removed unopened rows to reduce memory overhead #162

Closed kamtschatka closed 2 years ago

kamtschatka commented 3 years ago

I am using the fold-entity-row heavily in one of my dashboards and most of the time the rows are folded. With this fix I reduced the memory overhead by 300MB on my dashboard and I am hoping others will profit from it as well. All it does is not add the row cards to the DOM unless you actually fold it down.

bcutter commented 2 years ago

I am using the fold-entity-row heavily in one of my dashboards and most of the time the rows are folded. With this fix I reduced the memory overhead by 300MB on my dashboard and I am hoping others will profit from it as well. All it does is not add the row cards to the DOM unless you actually fold it down.

That’s a great improvement, thank you! Looking forward to see this one merged.

thomasloven commented 2 years ago

Hi!

Thank you for your contribution. I have just implemented this a bit differently, such that the opening and closing of folds look a bit nicer too.