Prevent lazyloading slideshow images sense theme

Topic summary

Issue: The homepage slideshow’s main (hero) image in the Sense theme is lazy-loaded, delaying a large above‑the‑fold visual and impacting perceived speed.

Proposed fix: Disable lazy loading for the above‑the‑fold slide. Steps: Online Store > Themes > Edit code > Sections > slideshow.liquid, remove the line loading: ‘lazy’, then save. (“Above the fold” = content visible without scrolling on first load.) A code snippet and an image reference were provided and are central to the solution.

Status: The original poster acknowledged the fix. No performance metrics were reported.

Open questions: A participant asked whether removing loading: ‘lazy’ would also force all other slides to load eagerly, and whether only the first (visible) slide should load eagerly while subsequent slides remain lazy-loaded. This best‑practice question remains unanswered, and the discussion is currently open.

Summarized with AI on January 11. AI used: gpt-5.

Hi all,

Just wondering if there’s anything that can be done about my website slideshow on the first page, I check the site speed and one of the major problems is that the slideshow image that takes up most of the screen is lazy loaded after everything else. I’m using the sense theme wondering if you can help me? Thank you

1 Like

Hi @Kelly_Ceramics

You do need to turn off the lazy loading before the fold. To do this, follow the instructions below

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  3. In the “Section” folder, click on “slideshow.liquid” file. Find the code below and delete it.
loading: 'lazy',

See image for reference:

  1. And Save.

If it helps, likes and “mark as solution” is appreciated :blush:

1 Like

Thank you!

1 Like

Thank you for the solution. I want to understand a bit about the code. Would it not load the rest of the slider images as well? Ideally, since they are not part of the first view, should we not let other images in the slider load lazily?