Lovelace Dashboard Slow to load on Mobile, but fast on computer?

Hey there! I have what I would describe a “fairly” involved dashboard, with Mushroom cars primarily, a fair number of Conditional Chips at the top, and most of the colors (green/red/etc) are driven from custom templates, for example the “security” in the top left will be “green” if all the doors are locked, garage door closed, etc etc.

Anyways, when I load this dashboard on my PC (Mac Pro) it’s pretty fast, loading in < 1 second.

When I open it on my mobile (in the HA app) on iOS, a lot of the time what happens is the dashboard loads with all grey everything, and takes 2-5 seconds to actually load the colors etc. Sometimes if I close it and open it again quickly, it has the previous state/colors/etc and after the 2-5 seconds it refreshes.

I’m curious if:

  1. Anyone else experiences this?
  2. If anyone knows where to start debugging? I could copy everything over to another dashboard and add things in 1 by 1 to see if anything specific is slowing it down, but this might be arduous.

Thanks so much in advance.

Both machines (phone and computer) are on my home network, which is the same network as the HA server.

If you were using Android i’d suggest that you clear the cached data held by the app. Not sure if there is an equivalent for iOS.

Alternatively, you could uninstall and reinstall the app.

I beg your pardon, how clearing a cache may help to increase a browser ? Not to mention the-installing companion app.

In iOS there is a similar “Reset Frontend cache” button.

When I use the Companion App on iPhone 5S - it is VERY slow.
On iPad Air 2 it is much faster.
On iPhone 12 it is much more faster - but still slower than on a powerful PC.

I got a rather complicated dashboard, custom cards, card-mod.
All jinja templates in card-mod, markdown and some custom cards are executed on a server side (which is a rather fast PC); also there are some config-template-cards (JS executed on a client side) and a little of button-card (same JS).

I concluded for my particular case that I need both powerful server and clients…

Interesting! @templeton_nash I cleared the cache and that actually did seem to make it faster. I had no idea that was even there. Is that normal for things to slow down over time and for the cache to need to be cleared? I suppose there’s no way to automate that is there?

There may be a way to automate it.

On my android phone I can schedule a weekly restart. This will clear the cache of every app. Not sure about iPhones.

1 Like