mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-24 21:37:21 +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)
|
||||
: null;
|
||||
}
|
||||
if (this._loadState === LoadState.Loading && !this.cameraImage) {
|
||||
this._loadState = LoadState.Loaded;
|
||||
}
|
||||
}
|
||||
|
||||
protected render(): TemplateResult {
|
||||
|
Loading…
x
Reference in New Issue
Block a user