The problem is, when first time scrolled, for example in the website, all the images, products, logos, everything blinks once. I cannot find the place where I can change this. The ideal outcome that images are normally showed without any blinks.
Does anyone know how to get rid of this? Is this some options I can modify or only available with code?
If you’re experiencing an annoying image flickering issue when scrolling for the first time on a website or application, there are a few potential reasons and solutions you can explore:
1. Lazy Loading: If the images on the website are using lazy loading, it might cause flickering when you first scroll since the images load asynchronously as you scroll down the page. Consider optimizing lazy loading or using a different lazy loading library to reduce or eliminate the flickering.
2. Image Size and Compression: Large images can take longer to load, causing flickering when you scroll. Compress and optimize images to reduce their file sizes and improve loading times.
3. CSS Transitions: CSS transitions or animations on images may lead to flickering when the page is first loaded. Check the CSS styles and animations applied to the images and ensure they are optimized for smooth rendering.
4. JavaScript Execution Time: Heavy JavaScript functions running on page load can delay the rendering of images and lead to flickering. Optimize your JavaScript code or consider deferring non-essential scripts to improve page loading performance.
5. Caching: Lack of caching can result in images being fetched each time the page is loaded, causing flickering. Implement proper caching strategies to serve cached images, reducing flickering on subsequent visits.
6. Preloading: Use image preloading techniques to load images in the background before they appear in the viewport. This can reduce flickering when scrolling down the page.
As I’m using Impulse theme, there is no exactly same way to adjust theme settings than in Dawn. From my point of view the similar Products, Product tiles or collection tiles. I tried to change every possible option to see whether flickering stops. Nothing stopped that.
I think it is not only with the products, but as well with all other images, since two pictures below the front page products and other pictures are flickering as well.
I think this might have something to do with the CSS transitions or preloading.
Any idea where I should find these parts to check if they’re the affecting thing?
The image preloading might be the thing. Some sort of option of lazy loading. I’ve limited the products displayed, so the image loading even bfore scrolling might be suitable solution. From my point of view, it seems the Shopify or the Impulse theme is trying to “look cool” with thise image appearance, but tbh it is bugging me quite a bit. Rather would have a plain showcase of images.
I got an idea , do as I always do if I can’t do something I always go to 24/7 live chat they are amazing and will guide you through while you speak to them buddy
Already did. They actually responded like in 15 minutes. They stated pretty fast that some sort of coding “might” be needed. And I should maybe hire an expert to make the solution. They also winked the experts.shopify.com to find the expert.
But before that, I just wanted to see whether someone from here had the same issue, because I think this is one of the common ones with Impulse theme as it is by default.
I’ve done websites with woocommerce and this kind of problem was easily found in the options. First time working with shopify platform, don’t have this kind of knowledge, yet.
From my point of view the flickering stopped atleast with the products. In the home page some of other pictures are still flickering, maybe it is controlled from somewhere else. However this might be enough for me.
Can you tell whether that kind of modification I just did is fine the way it won’t break any others parts of the website? Or would you suggest modifying it with different way?
Yes, I guess disabling AOS initialization is a better, more robust option than commenting out all animations.
In my code snippet I’ve put comments around the code which is/was originally in the theme and added at the bottom the code which should be run instead.
You’ve decided to keep the old code – this does not break anything, just does not make sense to enable it and then immediately disable.
But it also takes some (even if small) time to run, so I’d recommend removing or commenting the original code out the way I did.