ng-lazyload-image: Offset doesn't work
I wanted to improve appearance of the images via setting an offset to load the image beforehand. But it still does trigger the request when the image is already in the viewport.
Setting it like:
<img defaultImage="https://via.placeholder.com/400x800"
[offset]="300"
lazyLoad="../../assets/images/phones/phone@3x.png"/>
About this issue
- Original URL
- State: open
- Created 5 years ago
- Reactions: 4
- Comments: 16 (7 by maintainers)
Ok, i found the problem in my case: I had to set scrollTarget.
I used the function getScrollElement() for my Ionic ion-content to get it