mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 07:16:39 +00:00
Local images flagged as already loaded to avoid flickering/slow-down (#10086)
This commit is contained in:
parent
1bccbd4173
commit
ff2bf1f3c1
@ -122,6 +122,9 @@ export class HuiImage extends LitElement {
|
|||||||
? parseAspectRatio(this.aspectRatio)
|
? parseAspectRatio(this.aspectRatio)
|
||||||
: null;
|
: null;
|
||||||
}
|
}
|
||||||
|
if (this._loadState === LoadState.Loading && !this.cameraImage) {
|
||||||
|
this._loadState = LoadState.Loaded;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected render(): TemplateResult {
|
protected render(): TemplateResult {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user