Subtle Refresh/URL Load
Is your feature request related to a problem? Please describe.
I use custom compact header to enhance my lovelace interface. Specifically, I do this on the fly. So when something is playing on my TV, a new tab appears in my wallpanel interface and I can swipe over to it. However, browsers don't play well with the available tabs changing after a page load. I've automated the refreshing of wall panel via MQTT so that when the tabs change, the page is reloaded. This interrupts the interface and is somewhat unsightly.
Describe the solution you'd like
If the new page was able to be pre-loaded "underneath" the current one, like in a new webview, before being shown, it would be a smoother and more beautiful transition.
Essentially:
-
Wallpanel receives command to refresh or to load a new URL, possible with a new "subtle" flag.
-
Wallpanel spawns a new, hidden, webview and loads the new page. The old page stays visible and works as normal.
-
After loading, Wallpanel destroys the initial webview and the new page is shown without a gap in usability.
Describe alternatives you've considered
It's a minor complaint, so I've not put a ton of thought into it. I'll definitely be looking into if throwing more JS at it can solve the issue from that end.
If "page finished loading" isn't well defined enough, I think a "delay" flag in milliseconds or something could be set as well.
Additional context
None at this time. Thanks for a great app!