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

White Flash on First Load #38

Open
Xevion opened this issue Sep 25, 2023 · 0 comments
Open

White Flash on First Load #38

Xevion opened this issue Sep 25, 2023 · 0 comments
Labels
bug Something isn't working rework Something existing needs to be redeveloped or modified

Comments

@Xevion
Copy link
Member

Xevion commented Sep 25, 2023

On first load of any page using the background images, a white flash will be seen. I'd like to eliminate this somehow.

If you're not aware of how the backgrounds are done in this application, they can be rather complex and carefully done. Getting them to stay still, scale properly, have effects filter, and change size on different platforms (srcsets) is a complex job. I don't believe this issue is high priority nor easy to fix.

The only thing of note is that the index doesn't have a strong white background after the first load, even with hard refreshes. It does have a slight white gradient around the edges, but I believe this is an artifact of the blurring process for image loading.e

Some ideas:

  • Use CSS to apply a default color across the body.
    • Different pages use a different background image, so the color needs to be consistent. This might work as long as only the Index uses the special 'blue' background image and the rest use a different color for the background.
  • Embedding the background image in the page with SSR
    • Seems pretty complex. If it was possible and not insanely difficult, I probably would've done it when I originally developed this solution. I don't recommend trying this, but maybe there's an idea here.
@Xevion Xevion added bug Something isn't working rework Something existing needs to be redeveloped or modified labels Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working rework Something existing needs to be redeveloped or modified
Projects
None yet
Development

No branches or pull requests

1 participant