Skip to content
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

yall doesn't seem to work on iOS #68

Closed
bracketsberlin opened this issue Aug 16, 2019 · 3 comments
Closed

yall doesn't seem to work on iOS #68

bracketsberlin opened this issue Aug 16, 2019 · 3 comments

Comments

@bracketsberlin
Copy link

Hi,
while testing yall's lazy loading on iOS, we found out, that no image was loaded there at all. I thought maybe it's something with my page setup. However, I create a small JSbin which allows reconstructing the issue outside the original environment.

I only see the placeholder image but the lazy-loaded nature image never appears in iOS:
https://jsbin.com/gexusareze/edit?html,output

I tested it on iOS 9 through Browserstack. Can you please check that issue?

Thank you,
bb

@malchata
Copy link
Owner

Hi,

As per your example, I can see that you have not polyfilled IntersectionObserver, which means that yall will fail on iOS 9.

Additionally, I can see that you've included yall.js twice: once as an external resource, and another inlined version.

If you can polyfill IntersectionObserver, ensure you're only including one version of yall.js, and determine if there's still an issue, I'm happy to look into this as a bug.

@bracketsberlin
Copy link
Author

Hi,
oh jeeez. I am sorry, I totally forget about the polyfill.
I updated the fiddle and it now works as it should: https://jsbin.com/xabapemuya/edit?html,output

Thanks for your hint :-)

@malchata
Copy link
Owner

No worries! And I'm sorry if it wasn't clearer in the documentation. I'm planning on putting a ToC on it to make it easier to navigate. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants