1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-24 20:55:49 +00:00

Local images flagged as already loaded to avoid flickering/slow-down (#10086)

This commit is contained in:
smonesi
2021-09-30 10:14:08 +02:00
committed by GitHub
parent 1bccbd4173
commit ff2bf1f3c1

View File

@@ -122,6 +122,9 @@ export class HuiImage extends LitElement {
? parseAspectRatio(this.aspectRatio)
: null;
}
if (this._loadState === LoadState.Loading && !this.cameraImage) {
this._loadState = LoadState.Loaded;
}
}
protected render(): TemplateResult {