From 3e146218c4dcad4561bbb7f287389505cef63e7c Mon Sep 17 00:00:00 2001 From: Steve Ross Date: Tue, 3 Feb 2026 13:03:02 +0000 Subject: [PATCH] add condition for disabling lazy background image --- .../badegg/resources/js/blocks/components/BackgroundImage.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/app/themes/badegg/resources/js/blocks/components/BackgroundImage.jsx b/web/app/themes/badegg/resources/js/blocks/components/BackgroundImage.jsx index 98a6d7fa..e885d54d 100644 --- a/web/app/themes/badegg/resources/js/blocks/components/BackgroundImage.jsx +++ b/web/app/themes/badegg/resources/js/blocks/components/BackgroundImage.jsx @@ -21,6 +21,7 @@ export default function BackgroundImage({ background_position = 'center', background_fixed = false, background_opacity = 70, + disableLazyBG = false, }) { if (background_url) { @@ -37,7 +38,7 @@ export default function BackgroundImage({ style: styles, }; - if(background_lazy) { + if(background_lazy && !disableLazyBG) { attributes['data-bg'] = background_url; attributes.style.backgroundImage = `url(${background_url_lazy})`; attributes.className += ' lazy-bg';