Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi There,
The home page on our site is having some difficulties loading on mobile devices (mainly towards iOS devices) and I am trying to figure out how to find and resolve these issues the Shopify Front-End Team mentioned we have.
Upon analysis, we've observed a significant delay in the initial page load, particularly with the banner on your store. This seems to stem from a 400 error related to a Google font file, contributing to a 2-second delay.
Furthermore, the loading order of your page's elements appears to be a contributing factor. Specifically, the banner is loaded as the 21st item, preceded by third-party apps like Boost and Klaviyo, three custom JavaScript files, and a theme component JavaScript file.
The cumulative loading of these JavaScript files, especially on devices like the iPhone 13 mini, can indeed impact performance. To diagnose the exact cause and isolate the impact of third-party apps, I recommend conducting tests in a sandbox environment with Boost and Klaviyo apps temporarily removed. This will help us understand their influence on your page's loading time.
Moving forward, here are some suggestions to consider:
I appreciate any further assistance and insight anyone else can provide.
Hello,
I am San from MS Web Designer.
Here is the solution:
Optimizing the loading of JavaScript (JS) and CSS resources in a Shopify store for faster page rendering:
Example:
{{ '//cdn.shopify.com/s/assets/theme.js.css' | stylesheet_tag }}
{{ '//cdn.shopify.com/s/assets/theme.js.js' | script_tag }}
Example:
{{ 'your-script.js' | script_tag, async: true }}
{{ 'your-script.js' | script_tag, defer: true }}
Example:
<img loading="lazy" src="image.jpg" alt="Description">
Example:
{{ '//cdn.shopify.com/s/assets/theme.js' | script_tag }}
{{ '//cdn.shopify.com/s/assets/theme.css' | stylesheet_tag }}
Implementing these techniques can significantly improve the loading speed of JavaScript and CSS resources in your Shopify store, leading to a better user experience, especially on mobile devices.
Hope this helps.
If you have any queries further do let us know.
Regards,
San
If it’s helpful to you, please mark it as a solution.
Need Help with Shopify Design, Migration, Speed, or Custom tasks?
email: hi@mswebdesigner.com
Try Our Conversion Booster app to get more sales | Connect Our Founder Linkedin
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025