I am getting these issues on my store. I have tried to optimise the images, change the image formats and download speed site plugins, but can’t get all these issues fixed.
Have tried searching one by one, but I think thats the issue with Shopify. Depending on the theme and what no
I don’t know if this will help you, but you can try installing apps to optimize view page speed. One app that I recommend is Avada’s SEO:Image Optimizer Page Speed app.
I am using this app at the moment as well. It’s ok, but doesn’t seem to fix many issues. These google page insights are actually while using that very app.
This is Gina from flareAI app helping Shopify merchants get $6Million+ in sales from Google Search, on autopilot.
Below are some suggestions for each of the issues you mentioned.
Efficiently encode images
Ensure that your images are optimized for the web by compressing them without compromising their quality. You can use tools like TinyPNG to compress your images without losing their quality.
Serve images in next-gen formats
Next-gen image formats like WebP are more efficient than traditional image formats. Consider using a tool like the Shopify app Image Optimizer to convert your images into next-gen formats.
Preconnect to required origins
Preconnect can help speed up page loading times by establishing early connections to required origins. Consider using a preconnect tag to connect to important third-party resources.
Reduce the impact of third-party code
Third-party code can slow down your site’s performance. Consider removing or optimizing third-party code that is not essential for your site’s functionality.
Largest contentful paint image was lazily loaded
Lazy loading can help improve page loading times by loading images only when they are needed. However, make sure that the largest contentful paint (LCP) image is not lazily loaded, as this can negatively impact your site’s performance.
Image elements do not have explicit width and height
Make sure that your image elements have an explicit width and height specified in their HTML or CSS. This helps the browser allocate the correct amount of space for the image, which can improve page loading times.
Minimize main thread work
The main thread is responsible for rendering your site’s content. Minimizing the amount of work done on the main thread can help improve your site’s performance. Consider reducing the number of scripts or stylesheets loaded on the main thread.
Serve static assets with an efficient cache policy
Make sure that your static assets, like images and CSS files, are served with an efficient cache policy. This can help improve page loading times by reducing the number of requests made to the server.
Reduce JavaScript execution time
JavaScript can slow down your site’s performance, especially if it’s executed on the main thread. Consider optimizing your JavaScript code to reduce execution time.
Avoid enormous network payloads
Large network payloads, like images or videos, can slow down your site’s performance. Consider compressing or optimizing large files to reduce their size.
Avoid an excessive DOM size
A large DOM can slow down your site’s performance, especially on mobile devices. Consider optimizing your HTML and CSS code to reduce the size of your DOM.
Implementing these suggestions can help improve your site’s performance and potentially resolve the issues you are facing. However, keep in mind that some of these issues may be related to the specific theme or app you are using on your Shopify store.
Below are some factors that might impact the speed of your online store, and how you can address them.
Defer offscreen images
So you can use a lazy load for these images.
To defer the loading of offscreen images on your Shopify site, you will have to modify your Theme (theme. liquid file) to leverage the lazySizes library. Here’s how:
Download the lazy sizes Javascript library from here and upload it to your theme’s /assets folder.
Note(once check ‘lazy sizes Javascript library’ in assets repo. has available or not)
Add the following lines to your theme. liquid just before the tag:
Change the image tags in your theme by adding the class “lazyload” to the image tags and changing the src attribute to the data-src attribute.