Performance Improvements (#2449)

This commit is contained in:
Joe Milazzo 2023-11-21 13:20:36 -06:00 committed by GitHub
parent 419a827d42
commit 5ed1eebd26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
34 changed files with 389 additions and 132 deletions

View file

@ -3,4 +3,5 @@
alt=""
aria-hidden="true"
[lazyLoad]="imageUrl"
[errorImage]="errorImage"
(onStateChange)="myCallbackFunction($event)">

View file

@ -172,7 +172,7 @@ export class ImageComponent implements OnChanges {
case 'loading-failed':
// The image could not be loaded for some reason.
// `event.data` is the error in this case
image.src = this.errorImage;
this.renderer.removeClass(image, 'fade-in');
this.cdRef.markForCheck();
break;
case 'finally':