Is there still no way to prevent the flash bang while waiting for initial content from the server?
make dark mode the default, then it's a flash of dark in either case
Decrease screen brightness. Turn off dark mode. No flashbang. Bonus: Battery lasts longer.
I don't know if I misunderstand the problem, but what about a style tag at the earliest part of the page indicating the background color to use?