twobin / react-lazyload

Lazy load your component, image or anything matters the performance.
MIT License
5.85k stars 487 forks source link

Lazyloading scrollParent reloads previously loaded #304

Open HansKre opened 4 years ago

HansKre commented 4 years ago

I have wrapped my components with ... 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.