Allow backed to detect frontend errors and reload it

HA is installed on my tablet. For example, sometimes video stream dies. And it doesn’t automatically reloaded. Such bug maybe fixed, but I asking about autofixing system for feature bugs. It will be nice for backed to detect frontend errors, for example JavaScript errors, or WebKit engine error and reload it. Sometimes it should be reload of WebView, sometimes reload only of one isolated html element. Certainly, use reload only after constant fails, which isn’t fixed by frontend automatically. And AI should control such reloads, to protect from bootloops of UI.