Skip to content

White flash on reload (1โ€“2 frames)ย #6

@DpAkyJ1A

Description

@DpAkyJ1A

Hi! ๐Ÿ‘‹
First of all, great library โ€“ Neat looks awesome.

There is a small but noticeable issue when using NeatGradient as a full-screen background (especially on dark themes):

The issue is much more visible on dark backgrounds. On light backgrounds it is likely present as well, but visually masked. On page reload, the canvas sometimes flashes white for 1โ€“2 frames before the gradient appears.

This also happens on the official demo:
https://neat.firecms.co/

Image

And here is how it looks on my website with dark theme (Its gray cuz i have dark half transparent black overlay):

Image

I experimented quite a bit with different loading states:

  1. rendering a solid fallback background behind the canvas
  2. adding a โ€œshutterโ€ layer above the background to mask initial frames
  3. delaying canvas visibility until after initialization

Unfortunately, none of these fully solved the issue โ€“ the white frame still appears occasionally, which makes it feel like itโ€™s coming from the WebGL canvas itself.

My environment is

  • @firecms/neat 0.5.1
  • Chrome

Iโ€™ll keep experimenting on my side to see if I can find a reliable fix.
Any hints, ideas, or guidance would be very appreciated ๐Ÿ™

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions