Skip to content

Commit 0f6769b

Browse files
author
Grigorii Duca
committed
.
1 parent 065f2b2 commit 0f6769b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lazy-load.directive.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ export class LazyLoadDirective implements OnInit, AfterViewInit {
3030
window.addEventListener('scroll', this.tryLoading);
3131
window.addEventListener('resize', this.tryLoading);
3232

33-
this.tryLoading();
33+
setTimeout(() => {
34+
this.tryLoading();
35+
});
3436
}
3537
}
3638

0 commit comments

Comments
 (0)