-
Notifications
You must be signed in to change notification settings - Fork 973
about:newtab - avoid flash of unstyled content #5309
Comments
Reopening after @bbondy had tried it out and it's noticeably slow. Let's see what we can do to fix this |
moving to 0.12.10 |
Cache-Control header was added to all of the images (max age = 1 year) so it should always load from cache (after it does the initial load). It could still be better though |
I think we should share a single instance of a webview for newtab pages to make it instant, but I think the cache control improved things a lot so I'm removing the priority for now. |
A really solid fix was put together by @josiah-keller in #6590. Setting the background to black made the flash more pronounced... the problem is definitely the default background color (white) when the webview object gets loaded. I searched the Electron issue log and found electron/electron#5175, which captures this exact issue. We should be able to fix this Muon by patching Chromium. It's hard to determine a priority for this issue since it's not horrible... but fixing it would be a very nice touch. I'd like to give a heads up to some folks just in case you see related code when you're in Muon: @bridiver @bbondy @darkdh @diracdeltas There is a similar issue captured in Electron's issue log with electron/electron#861 which is for the BrowserWindow object. A work-around is provided there for that case (in case we'd like to incorporate it with our main window). |
+1 via #8128 |
I thought @petemill was working on this issue recently. I am sorry if I am wrong. |
Remove white flash for new tab pages which use about:newtab. Sets the frame background to the same background as the newtab page, for a smooth transition between frame creation and the tab beginning to load content. Keeps the frame around until the next frame is ready, to avoid flash when closing tabs. Addresses #5309
Remove white flash for new tab pages which use about:newtab. Sets the frame background to the same background as the newtab page, for a smooth transition between frame creation and the tab beginning to load content. Keeps the frame around until the next frame is ready, to avoid flash when closing tabs. Addresses #5309
Remove white flash for new tab pages which use about:newtab. Sets the frame background to the same background as the newtab page, for a smooth transition between frame creation and the tab beginning to load content. Keeps the frame around until the next frame is ready, to avoid flash when closing tabs. Addresses #5309
Remove white flash for new tab pages which use about:newtab. Sets the frame background to the same background as the newtab page, for a smooth transition between frame creation and the tab beginning to load content. Keeps the frame around until the next frame is ready, to avoid flash when closing tabs. Addresses #5309
Remove white flash for new tab pages which use about:newtab. Sets the frame background to the same background as the newtab page, for a smooth transition between frame creation and the tab beginning to load content. Keeps the frame around until the next frame is ready, to avoid flash when closing tabs. Fix flash of 'dark' when opening new private tab by fading in private tab background. Addresses #5309
Remove white flash for new tab pages which use about:newtab. Sets the frame background to the same background as the newtab page, for a smooth transition between frame creation and the tab beginning to load content. Keeps the frame around until the next frame is ready, to avoid flash when closing tabs. Fix flash of 'dark' when opening new private tab by fading in private tab background. Addresses #5309
Remove white flash for new tab pages which use about:newtab. Sets the frame background to the same background as the newtab page, for a smooth transition between frame creation and the tab beginning to load content. Keeps the frame around until the next frame is ready, to avoid flash when closing tabs. Fix flash of 'dark' when opening new private tab by fading in private tab background. Addresses #5309
Because the page is loading an image remotely, opening a new tab has a very brief flash (from white, to gradient, to the image that gets loaded).
We should be fading in gradually to avoid causing a flash for the user.
Test Cases:
Test Cases 1 (downloading the images)
about:newtab
and there's no visible "flashes" of white or any other artefacts.. It should be a smooth experience.Repeat the above STR several times to retrieve several other images into the local cache.
Test Case 2 (loading images from cache)
You should be able to tell the difference when an image is being downloaded/loaded from cache.
The text was updated successfully, but these errors were encountered: