react-lazyload icon indicating copy to clipboard operation
react-lazyload copied to clipboard

Lazyloading scrollParent reloads previously loaded

Open HansKre opened this issue 5 years ago • 0 comments

I have wrapped my components with <LazyLoad> ... </LazyLoad> and the lazyloading is working nicely.

Bildschirmfoto 2020-06-06 um 09 24 31

I have noticed in the Chrome Network Inspector that on each scrollParent event not only the new component is loaded but the previosly loaded components are reloaded as well. That's a huge impact on network and performance.

Bildschirmfoto 2020-06-06 um 09 23 13

I can't imagine that it's how it is supposed to work so I guess that either I'm missing something or that there's an issue.

Please kindly have a look.

HansKre avatar Jun 06 '20 07:06 HansKre