From 53320831bb3a395310c7116ceebf68cae823e822 Mon Sep 17 00:00:00 2001 From: Masahiko AMANO Date: Thu, 2 Feb 2023 13:44:44 +0300 Subject: [PATCH] feat(web): lazy load file thumbs on tags menu --- web/public/js/tfm-tags.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/web/public/js/tfm-tags.js b/web/public/js/tfm-tags.js index 552dd30..9833153 100644 --- a/web/public/js/tfm-tags.js +++ b/web/public/js/tfm-tags.js @@ -28,6 +28,14 @@ $(document).on("input", "#text-filter", function (e) { $(document).on("dblclick", ".item", function (e) { e.preventDefault(); + $(function () { + $(".thumb").Lazy({ + scrollDirection: "vertical", + effect: "fadeIn", + visibleOnly: true, + appendScroll: $(".list")[0], + }); + }); let id = parseInt($(this).attr("id").slice(1)); sappyou.every(tanzaku => { if (tanzaku.id === id) {