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

Does not work on mobile #23

Open
Laurensvdw opened this issue Feb 10, 2019 · 1 comment
Open

Does not work on mobile #23

Laurensvdw opened this issue Feb 10, 2019 · 1 comment

Comments

@Laurensvdw
Copy link

Laurensvdw commented Feb 10, 2019

Hi there,

I tested your package and it worked well untill I opened the web application on a mobile phone. Then it did no longer load the images...

I checked your demo on my phone and there it works. Any ideas how come? :)

I didn't set any options, just used it as described:

(deferLoad)="showMyElement=true">
    <my-element
       *ngIf=showMyElement>
      ...
    </my-element>

In the meantime I wrote my own Intersection Observer, I was just curious how come it does not work out of the box :)

@Sebastian-Haehnlein
Copy link

Sebastian-Haehnlein commented Nov 29, 2019

some browsers e.g. chromium just works with a block-element + deferLoad-directive
works
<div (deferLoad)="showMyElement=true">

did not work
<span (deferLoad)="showMyElement=true">

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

No branches or pull requests

2 participants