diff --git a/admin.html b/admin.html
index bb12a63..8af7ecb 100644
--- a/admin.html
+++ b/admin.html
@@ -182,6 +182,17 @@ function videoHref(c) {
return `/lib/video/${c.id}`;
}
+const previewObserver = new IntersectionObserver(
+ (entries) => {
+ for (const e of entries) {
+ if (!e.isIntersecting) continue;
+ e.target.src = e.target.dataset.src;
+ previewObserver.unobserve(e.target);
+ }
+ },
+ { rootMargin: "200px" }
+);
+
function render() {
const rows = filteredSorted();
const channelTotal = library.filter(inChannel).length;
@@ -202,7 +213,7 @@ function render() {
|
|
|
- |
+ |
|