Best Software solution for a magic mirror

Hello everyone,

I have a magic mirror and am not happy with software side of things. I have a dedicated dashboard the raspberry pi 4 is showing.
However, performance is poor. It is hard for me to imagine, that it takes a pi 4 several minutes to load all aspects of a dashboard. Sometimes, the card mod aspects aren’t loaded at all and sometimes I get a “no connection” error and have to reboot the pi.

Is there a go to method that works? I want the pi to simply show the dashboard, react to changes, i.e. the dish washer is turned on and a timer is started, and not crash.

The solution I am currently using is something in the config files of the pi that I do not really understand.

I have a kiosk.sh file that has the following code:

xset s off -dpms
xscreensaver -no-splash
xset s noblank
matchbox-windowmanager -use_titlebar no &
unclutter &
chromium-browser --display=:0 --kiosk  --noerrdialogs --disable-infobars --window-size="1200,1920" --force-device-scale-factor=1.5 --window-position="-315,0" http://homeassistant.local:8123/magicmirror-2/0

#while true; do 
#	xdotool keydown 'ctrl+r'; xdotool keyup 'ctrl+r';
 #     sleep 600
#done

There a one or two more files that are related to this but I hope this part is enough for someone who knows what they are talking about to figure out what I am currently using.

Thanks for the help