-
Notifications
You must be signed in to change notification settings - Fork 142
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
[Feature Request] Retry when loading failed #501
Comments
Hi, Of would it be possible for you to use a custom hook? import { IntersectionObserverHooks, Attributes } from 'ng-lazyload-image';
import { defer, retry } from 'rxjs';
class LazyLoadImageHooks extends IntersectionObserverHooks {
loadImage(attributes: Attributes): ObservableInput<string> {
return defer(() => this.super.loadImage(attributes)).pipe(retry(2));
}
} |
Thanks, that worked! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The problem I'm facing is that when the images failed to load for example network connection lost it will not load anymore, even if the network connection is enabled again.
Is there any way to add a retry or any suggestion how to fix that ?
Probably the same as:
#129
The text was updated successfully, but these errors were encountered: