From 871acb2b4ea8dbb7d594822a7b7418c03c3e3495 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 28 Dec 2022 20:15:35 -0400 Subject: no lazy-loading carousels (for now) --- src/misc-templates.js | 2 +- src/page/homepage.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/misc-templates.js b/src/misc-templates.js index 71c6288..f27074b 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 67b2c64..d34f117 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, }), -- cgit 1.3.0-6-gf8a5