« get me outta code hell

no lazy-loading carousels (for now) - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2022-12-28 20:15:35 -0400
committer(quasar) nebula <qznebula@protonmail.com>2022-12-28 20:15:35 -0400
commit871acb2b4ea8dbb7d594822a7b7418c03c3e3495 (patch)
tree4d7299224c09a8fd39a8ab7ff344b74479cc9fc5 /src
parent81e7947f1c4a8a795fa4be7aa797683692391d41 (diff)
no lazy-loading carousels (for now)
Diffstat (limited to 'src')
-rw-r--r--src/misc-templates.js2
-rw-r--r--src/page/homepage.js3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/misc-templates.js b/src/misc-templates.js
index 71c62883..f27074b5 100644
--- a/src/misc-templates.js
+++ b/src/misc-templates.js
@@ -689,7 +689,7 @@ function unbound_getCarouselHTML({
   img,
 
   items,
-  lazy = true,
+  lazy = false,
 
   altFn = () => '',
   linkFn = (x, {text}) => text,
diff --git a/src/page/homepage.js b/src/page/homepage.js
index 67b2c649..d34f117b 100644
--- a/src/page/homepage.js
+++ b/src/page/homepage.js
@@ -117,7 +117,8 @@ export function writeTargetless({wikiData}) {
                     entry.displayStyle === 'carousel' && [
                       getCarouselHTML({
                         items: entry.entries.map(e => e.item),
-                        lazy: i > 0,
+                        // Lazy carousels are kinda glitchy, possibly browser-dependant
+                        // lazy: i > 0,
                         srcFn: getAlbumCover,
                         linkFn: link.album,
                       }),