The user riteshsaini reported a delay in loading the .topic-body background color after a page reload, causing a poor UX. Don explained that the issue stems from the default CSS @keyframes animation transitioning from var(--tertiary-low) to transparent, which causes a flicker when the background is not white. To fix this, Don provided a solution by overriding the default keyframe or creating a custom one to transition directly to #fff, ensuring a smooth background color load. The solution was implemented successfully, and riteshsaini thanked Don for the detailed help. maiki moved the topic to Product Support and suggested marking Don’s answer as the solution.
This means it highlight from var(--tertiary-low) to transparent. Which is cool because Discourse default background color is white and topic body has no background, so transparent will be white but in your situation the problem is the background is different so it goes first to transparent and after a little delay it will be #fff(the background color you seted up to topic-body).
So you have to change the transparent to make it smooth color transition. You can override the default but maybe better if you create a new keyframes.
Note: If you override the default keyframe it will change everywhere where Discourse using it not just on topic-body.