TradeMe / ng-defer-load

MIT License
127 stars 37 forks source link

Does not work on mobile #23

Open Laurensvdw opened 5 years ago

Laurensvdw commented 5 years ago

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 commented 4 years ago

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">