DEV Community

loading...

Discussion on: Trying Lazy Loading and getting flicker?

Collapse
bmitchinson profile image
Ben Mitchinson Author

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.