Lovelace page not loading

Since June’s update (I think) I have been seeing an issue where some of my Lovelace dashboards do not load.

If I refresh the page, it loads…


But when I switch to another tab and back again, it will disappear.

There are a few errors in console but I believe these were always there.

Any suggestions how to fix this?