DEV Community

Discussion on: Trying Lazy Loading and getting flicker?

Collapse
 
devdrake0 profile image
Si

Throttle your speed to like Slow 3G or something, and see if you can capture what the white background is.

Is it displaying a loading screen, which flickers because it loads so quickly?

Collapse
 
bmitchinson profile image
Ben Mitchinson

It does! How do I avoid this? I was hoping my spinner would be rendered without a flash? It doesn't even render my spinner during this time it's only white.

Collapse
 
devdrake0 profile image
Si

It's "flashing" because you're page is loading too quickly, so the spinner loads and then disappears because the job is over.

I'm not a frontend dev, or a designer, but I would find a loading mechanism that doesn't cause a flash.

For example, a skeleton screen.