react-lazy-load-image-component icon indicating copy to clipboard operation
react-lazy-load-image-component copied to clipboard

Images are not downloading in chrome desktop

Open grkpranaykumar opened this issue 4 years ago • 6 comments

Bug description Images are not downloading after the page loads. If I zoom out size to 90% then they are getting downloaded. On 100% resolution of screen no image is downloaded on the page. This issue is occuring only on my chrome desktop.

I used <LazyLoadImage src={backGroundImageLink} alt=' ' /> for lazy loading the image on the tuples

This is the original webpage on 100% resolution Screenshot from 2019-11-29 21-47-23

And this is the screen after I zoom out the screen resolution to 90% Screenshot from 2019-11-29 21-48-56

Technical details:

  • Package version [e.g. 1.3.2]
  • Device [Desktop]
  • Operating System [e.g.Linux(Ubuntu)]
  • Browser [e.g. Chrome 77.0.3865.90 (Official Build) ]

grkpranaykumar avatar Nov 29 '19 16:11 grkpranaykumar

did you pass width and height attrs to the component?

gobr avatar Dec 20 '19 14:12 gobr

Also had this issue. For me it would not load a column in a grid of images. Resizing the window somehow triggered them to load.

Adding width and height attributes fixed it, but would be nice if those were not required.

jsakas avatar Jan 29 '20 05:01 jsakas

Adding a border somehow fixes the issue. for example border: 1px solid transparent

matevosyanmko avatar Feb 05 '20 12:02 matevosyanmko

It also works if you set a min-width and min-height, I guess basically anything that forces the image bounding box to be more than 0x0. It would be very useful if it wasn't needed or if the library could add a CSS rule for it, perhaps.

elamperti avatar Mar 28 '20 21:03 elamperti

I had the same issue with <LazyLoadComponent />. Fixed this way:

const Placeholder = styled.div`
  min-width: 1px;
  min-height: 1px;
`;

<LazyLoadComponent placeholder={<Placeholder />}>
    <Component />
</LazyLoadComponent>

MathieuDebit avatar May 18 '20 10:05 MathieuDebit

Unfortunately, I'm unable to reproduce. Do you happen to know:

  • Is this happening in other browsers besides Chrome?
  • Is this happening with LazyLoadImage and LazyLoadComponent or only one of them?
  • The images which are not loading are the ones above the fold, below the fold or all of them?
  • Do you have a repo or a live site where this issue is reproducible?

Thanks in advance!

Aljullu avatar Aug 13 '21 19:08 Aljullu

@grkpranaykumar, as we didn't hear back from you for a while, we will go ahead and close this issue. Feel free to reopen it if needed.

jotacodestudio avatar Oct 16 '23 09:10 jotacodestudio