Brief white flash loading/rendering page by clicking on link (same-origin)

Description of the issue:
When clicking on link on same origin brave randomly emit a brief white flash in the window before page is rendered.

How can this issue be reproduced?

For example: https://laravel.com/docs/9.x
clicking on the left sidebar links will reproduce this bug. On my PC i see a brief white flash before page is loaded. It seems to be random. Sometimes page render without the white flash…and other times the entire window goes white for a fraction of second.

Expected result:
No white flash at all. The browser have to hold the previous paint while the next page is ready to be showed: https://developer.chrome.com/blog/paint-holding/

Brave Version( check About Brave):
Brave 1.40.105 Chromium: 103.0.5060.53 (Official build) (64 bit)
on Windows 11 desktop 64bit without extension (fresh brave install)

Additional Information:
Maybe a related chromium bug? https://bugs.chromium.org/p/chromium/issues/detail?id=853986

@Steppenwolf,
Thank you for reaching out to us.
Looks like I can reproduce this issue on my end. However, I do see that the main cause of the issue appears to be the dark mode detection. The white flash comes through and is only visible if the site is in dark mode. Its as if clicking on the link tries to launch the page in normal (light) mode then realizes that it should actually be dark before actually displaying the page, which is why you see the “bright flash”.

It’s highly likely that the Chromium issue you linked to is the offender, and will mean that it will likely have to wait for an upstream fix from the Chromium team to resolve. I’ve forwarded this information to the team regardless.

@Mattches,
thank you for the answer. If a website has a white background for sure you wont see the white flash on browser rendering…white + white is always white! On light theme websites you will only see elements like text or images that disappear on rendering but obviously not the entire page because that was already white.

you will see random white flashes every time a website has some elements different from the white color. The best test cases are obviously dark-theme websites.

a made this short video to better explain me: https://imgur.com/a/Cquz6GE
to reproduce go to: https://adminlte.io/themes/v3/
and click randomly on left sidebar links. You will see that when the browser is loading the new page the left dark sidebar randomly flash white.

@Mattches,

This video is an example from firefox where there arent white flashes when clicking on links:

Again I do see the issue and see why it would be frustrating. As I said previously, we’ll likely have to wait for an upstream fix for this particular problem.