From 7ee2e1e54ef1ea8c6eceef87e46ec74e2cc23869 Mon Sep 17 00:00:00 2001 From: Kentai Radiquum Date: Sun, 26 Jan 2025 05:14:15 +0500 Subject: [PATCH] add image lazy loading via observer API --- src/templates/components/Header.ejs | 4 +- src/templates/components/Image.ejs | 24 ++++++++ src/templates/components/Link/Stickerset.ejs | 23 +------- src/templates/components/Pack/Description.ejs | 25 +-------- src/templates/components/Pack/Preview.ejs | 23 +------- src/templates/functions.ejs | 13 +++++ static/RenderImages.js | 55 +++++++++++-------- static/tailwind.css | 13 ++--- 8 files changed, 81 insertions(+), 99 deletions(-) create mode 100644 src/templates/components/Image.ejs diff --git a/src/templates/components/Header.ejs b/src/templates/components/Header.ejs index cfbe8d2..63717fa 100644 --- a/src/templates/components/Header.ejs +++ b/src/templates/components/Header.ejs @@ -1,11 +1,11 @@ <% include('/functions') %>
-
+
index page <% if (stickerset) { %>
-

<%- stickerset.title %>

+

<%- stickerset.title %>

<% }; %>