Performance Improvements (#2449)
This commit is contained in:
parent
419a827d42
commit
5ed1eebd26
34 changed files with 389 additions and 132 deletions
|
|
@ -3,4 +3,5 @@
|
|||
alt=""
|
||||
aria-hidden="true"
|
||||
[lazyLoad]="imageUrl"
|
||||
[errorImage]="errorImage"
|
||||
(onStateChange)="myCallbackFunction($event)">
|
||||
|
|
|
|||
|
|
@ -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':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue