Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix white flash on NTP #1680

Merged
merged 1 commit into from
Feb 15, 2019
Merged

Fix white flash on NTP #1680

merged 1 commit into from
Feb 15, 2019

Conversation

rossmoody
Copy link
Contributor

Addresses: brave/brave-browser#2568
Fixes: brave/brave-browser#3362

From all the builds and different ways of surfacing the body background-color I tried, this is the only way I could get it to persist when opening a new webpage from NTP (and not show the white bar at the bottom). If the CSS is designated anywhere else the background color will load correctly but it won't fill the whole viewport when navigating away from NTP and the white strip surfaces at the bottom.

This helps with the stark white bar being quite so apparent but a real fix for that problem is likely much more difficult and larger than just the scope of NTP. The background color helps that white flash before the images load as well.

Video of the refresh: https://d.pr/i/JtzC4p

@rossmoody rossmoody added this to the 0.62.x - Nightly milestone Feb 15, 2019
@rossmoody rossmoody self-assigned this Feb 15, 2019
Copy link
Contributor

@cezaraugusto cezaraugusto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@rossmoody
Copy link
Contributor Author

After talking with @petemill, a more appropriate solve for this in the long run is to investigate setting the image itself as a background on the body. The grey background will help ease the initial load, but the jump issue will likely be fixed with that approach in some capacity.

@rossmoody rossmoody merged commit bedc9cd into master Feb 15, 2019
@rossmoody rossmoody deleted the new-tab-bg branch February 15, 2019 18:06
rossmoody added a commit that referenced this pull request Feb 15, 2019
rossmoody added a commit that referenced this pull request Feb 15, 2019
rossmoody added a commit that referenced this pull request Feb 15, 2019
Merge pull request #1680 from brave/new-tab-bg
rossmoody added a commit that referenced this pull request Feb 23, 2019
Merge pull request #1680 from brave/new-tab-bg (uplift to 0.61.x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

new tab flashes white - follow up to 1876
2 participants