Skip to content

React Lazy Load Image Component not working in safari browser #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
AkhilSuresh opened this issue Oct 20, 2018 · 2 comments
Closed

React Lazy Load Image Component not working in safari browser #13

AkhilSuresh opened this issue Oct 20, 2018 · 2 comments
Labels
question Further information is requested

Comments

@AkhilSuresh
Copy link

AkhilSuresh commented Oct 20, 2018

I am developing a website in React.js which has a bunch of image calls.

So it was mandatory to implement lazy loading of the images so that images present in the viewport will be only called on the initial loading of the website,

I am currently using https://www.npmjs.com/package/react-lazy-load-image-component to implement lazy loading.

It is working fine in desktop browsers(including safari), android browsers but the image is not loading at all in the iPhone safari browser even after the scrolling.

This is how i use the component in my JS file,

<LazyLoadImage alt="Select a hero" src="/images/someimage.png" />

And I also use LazyLoadComponent to lazy load a section in my page and the content that is given inside this component is also not showing up in safari,

 <LazyLoadComponent> <WorkExplanation currentLanguage={this.props.currentLanguage} />
 </LazyLoadComponent>

@Aljullu Can you please help me to solve this issue?

@Aljullu
Copy link
Owner

Aljullu commented Nov 5, 2018

Hi @AkhilSuresh thanks for your report and excuse me for the delay answering.

Unfortunately I don't have any iOS device to test it. However, doing some testing with Browser Stack it looks like the demo site (https://www.albertjuhe.com/react-lazy-load-image-component/) works fine.

In order to diagnose the problem, it would be helpful if you could provide a project where the error can be reproduced and under which iOS version you are testing it. The code snippets you provided should work fine so I guess the issue must be somewhere else.

@Aljullu Aljullu added the question Further information is requested label Dec 1, 2018
@Aljullu
Copy link
Owner

Aljullu commented Jan 13, 2019

Closed in #28.

@Aljullu Aljullu closed this as completed Jan 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants