mirror of
https://github.com/morluto/rea.git
synced 2026-12-06 14:59:05 +00:00
The theme switch stayed hidden until its translations loaded, and the saved GitHub star count appeared only once the deferred page script ran. Both arrived after the first paint and widened the right side of the header, pushing the navigation links about 120 pixels left on every page. Show the switch from the start whenever the theme script has marked the root element, and hide it again only if its setup fails. Put the saved star count in place with a small script right after the GitHub link, so it is drawn with the first paint; the page script keeps labelling the link and refreshing the count from GitHub.