Hello @RonitParmar03 ,
I have checked your site in the Google Page insights tool. There is a low score on your website. It needs to be improved, especially on mobile devices.
When Core Web Vitals such as CLS, LCP, and TBT scores are low, it can negatively impact your site’s SEO ranking and user engagement. Without optimization, your site may struggle to attract views and interaction from users, leading to lower visibility and reduced traffic.
Below are some factors that might impact the speed of your online store, and how you can address them.
Page speed score for mobile view:
3rd Party App Code:
- You should remove the unused app code. It will be beneficial to your store. and makes your theme code easier to read.
- 3rd party apps & codes which take time to load and their size. They decrease the speed.
- Some code can be removed or reordered to improve your online store’s performance. If you’re not using an app, then you can remove it.
- If you’re removing an app, then consider removing the code that was added as part of the app install process. Some apps help you with this process by wrapping their code in {% comment %} tags that mention the app name.
- Removing unused app code is a best practice that avoids running code for unused features and makes your theme code easier to read.
Defer off-screen images:
One of the most common recommendations I found is “Defer offscreen images”. This is an indication that all of the site’s image assets are loading at once.
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 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.
- Ex:
{% for img in product.images %}
{% assign img_url = img | img_url: ‘1x1’ | replace: ‘1x1.', '{width}x.’ %}
<img class=“lazyload”
src=“{{ img | img_url: ‘300x’ }}”
data-src=“{{ img_url }}”
data-widths=“[720, 1080]”
data-aspectratio=“{{ img.aspect_ratio }}”
data-sizes=“auto”>
{% endfor %}
We’ve had the best success for our clients by working with our developers to implement the lazy sizes because it’s quite complicated for non-technical people.
You need to work on the following points:
- Pass core web vitals (important)
- Reduce JS Payload.
- Use Critical CSS.
- Reduce Large Image Sizes
- Migrate Tracking Codes To Google Tag Manager
- Compress Images
- Limit Third-Party JavaScript & Shopify Apps
- Preload Web Fonts.
- Use a standard web font.
Theme Upgrade:
Its benefits include improved loading speeds, which can help with both user experience and store conversion rates, and search engine optimization.
How to Optimize Total Blocking Time:
After determining the Long Tasks and the code blocks and web page assets that are causing them, optimizing Total Blocking Time can be possible. To optimize the Code Blocks that busy the main thread longer than 50 MS, the methods below can be used.
- Reduce the Request Count of the Third-Party Scripts
- Reduce the Size of the Third-Party Scripts
- Minimize the Browser’s Main Thread Work
- Clean the Unused Javascript and CSS Codes
- Compress the Javascript and CSS Files
- Implement the Code Splitting for Javascript Assets
You can choose from several fonts for the text in your online store.
To avoid downloading a new font to your customer’s computer, you can use a system font.
How to avoid showing invisible text:
The easiest way to avoid showing invisible text while custom fonts load is to temporarily show a system font. By including font-display: swap in your @font-face style, you can avoid FOIT in most modern browsers.
Remove unused CSS and unused JS:
- Check the assets folder of the theme and remove unused CSS and JS file
- Check and remove unused apps
- If your store has not installed any app you can comment {{ content_for_header }} code in the theme. liquid (not recommended if you don’t have knowledge about the liquid)If there is anything that needs to be clarified or included, please let us know. We will surely help you.
Have a nice day!