Skip to content

Ensure dark mode is toggled on slow connection

Weymeirsch, Jan requested to merge dark_improved into main

On slow connections, dark mode can not be toggled if the HTML has not been loaded properly until the javascript function is finished. This commit sets the icon type via CSS and only toggles the css-file via javascript. This Commit also simplifies the javascript substantially.

Merge request reports