From 38af2f3d628c691d3670df0dc81c989156688300 Mon Sep 17 00:00:00 2001 From: Dermot Duffy Date: Tue, 26 Oct 2021 13:32:06 -0700 Subject: [PATCH] Surface lazy load to the editor/README. --- README.md | 2 +- src/editor.ts | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 50bbe9d1..5b1b4dc1 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ lovelace: | `frigate_url` | | The URL of the frigate server. If set, this value will be (exclusively) used for a `Frigate UI` menu button. | | `autoplay_clip` | `false` | Whether or not to autoplay clips in the 'clip' [view](#views). Clips manually chosen in the clips gallery will still autoplay.| | `live_preload` | `false` | Whether or not to preload the live view. Preloading causes the live view to render in the background so it's instantly available when requested. This consumes additional network/CPU resources continually.| - +| `event_viewer.lazy_load` | `true` | Whether or not to lazily load media in the event viewer carousel. Setting this will false will fetch all media immediately which may make the carousel experience smoother at a cost of (potentially) a substantial number of simultaneous media fetches on load. | #### Live Provider diff --git a/src/editor.ts b/src/editor.ts index c4e45fe6..251adfe0 100644 --- a/src/editor.ts +++ b/src/editor.ts @@ -263,6 +263,13 @@ export class FrigateCardEditor extends LitElement implements LovelaceCardEditor @change=${this._valueChanged} > + + + ` : ''}