By default the dark theme was rendered. After the complete page was loaded the theme was switched according the stored value. This cause a flicker (background was first black for a second (until the page was completely loaded) and then turned white.
This commit moves the loading of the theme mode to the beginning (into the
section). Therefore the correct mode gets rendered.
By default the dark theme was rendered. After the complete page was loaded the theme was switched according the stored value. This cause a flicker (background was first black for a second (until the page was completely loaded) and then turned white.
This commit moves the loading of the theme mode to the beginning (into the
section). Therefore the correct mode gets rendered.