Hello @Iulia1
This type of flicker is usually caused by the product-gallery JavaScript initializing after the gallery HTML and images have already been rendered. During that brief moment, the browser displays the second slide in its default state, and then the theme’s slider script applies its final position, visibility, or opacity settings.
The Purity demo loads multiple product images directly in the initial product-page markup, so the issue is more likely related to the gallery’s initialization styles or JavaScript than image compression alone. (Purity Theme)
I would check the following:
- Test an untouched copy of the latest Purity theme
Go to:
Online Store → Themes → Add theme → Visit Theme Store
Install a fresh copy or update the theme, then preview the same product without publishing it. If the flicker still appears, it is most likely a theme issue and should be reported to NextSky support.
- Disable recently added app embeds
Temporarily disable image zoom, variant-image, product-gallery, review, or optimization app embeds. An app script may be re-rendering the gallery after the theme initializes it.
- Inspect the product gallery files
Depending on the theme version, look for files with names similar to:
main-product.liquid
product-media-gallery.liquid
product-gallery.liquid
component-slider.css
product-media.js
theme.js
Check whether inactive gallery slides have a visible default state before the slider receives its initialized class.
A common fix is to hide non-active slides until the gallery has initialized. For example:
product-media-gallery:not(.is-initialized) .product-media-item:not(:first-child) {
visibility: hidden;
opacity: 0;
}
However, the class names must be changed to match the actual Purity theme markup. Adding this code without confirming the correct selectors could hide the gallery permanently.
- Check the image loading attributes
The first product image should normally load eagerly because it is visible immediately. Secondary images can use lazy loading, but lazy loading by itself should not repeatedly change their visibility or position. Also check whether the second image has conflicting loading, animation, opacity, or transition attributes.
Since the issue happens on initial load without interaction, I would first test a clean, updated copy of the theme. If it also happens there, send NextSky support a screen recording, product URL, browser name, device type, and your Purity theme version. That will help them confirm whether it is a known gallery initialization bug.