Why Page Load Times Decide Sales and Rankings
Page load time is one of the few store settings that affects revenue and rankings at the same time: slow pages lose shoppers before the product is visible, and search engines treat loading behaviour as a ranking signal. On Shopify the biggest wins usually come from three places, images, third-party apps and scripts, and the theme itself.
This article walks through the network and code side first, then the theme side, with the settings and tools that apply specifically to Shopify.
1. Network and Code Optimization
Use a Delivery Network (CDN)
Compress images
Images that are large in size can cause slow loading times for your store, which can negatively impact its performance. To overcome this, apps such as Crush.pics or TinyIMG from the Shopify App Store can be used to compress your images.
Optimize code and eliminate unnecessary scripts
GTmetrix and Google PageSpeed Insights are tools that can be used to discover and resolve problems like render-blocking resources and code bloat. Additionally, Shopify has a built-in option for minifying and merging scripts and stylesheets that can be activated from “Online Store > Themes > Actions > Edit Code” in the admin panel.
Minimize redirects and broken links
Redirects and broken links slow down page loading. Use tools like Google Search Console to locate and fix these issues. Broken links caused by incorrect URLs can be resolved in the “Online Store > Navigation” section of your admin panel.
Use a good hosting service
Utilize caching
Optimize theme
2. Theme Optimization
Use a lightweight theme
Check code quality
Test for mobile performance
Many themes may be optimized for desktop devices but may not perform well on mobile devices, which is increasingly becoming an important factor as more and more people access the internet through their mobile devices (60%-80%). To ensure the theme’s performance on mobile devices, use tools such as Google’s PageSpeed Insights to check the theme’s performance on different mobile devices.
Be selective with apps
Be selective in the use of apps, as some slow down your site through poorly loading CDNs. To avoid this, load JavaScript asynchronously, and when uninstalling an app check the theme.liquid file for any remnants of its code and remove them.
Optimize images
Use JPG images instead of PNG and make sure the images are the appropriate size and optimized by compressing them. A good tool for this is Bulk Product Edit by Hextom, available in the Shopify App Store. Use the developer tools in Chrome to check how large images are actually rendered, so you can determine the optimal upload size for your images.
Asynchronous Loading of JavaScript in the Header
Context-Specific Loading of JavaScript in the theme.liquid File
To enhance the performance of your theme, load JavaScript only when it is required. Instead of loading every JavaScript file on every page, you can use the following approaches.
Preload the first Product Image on the Product Detail Page (PDP)
Minify CSS and JavaScript
Combine CSS and JavaScript
Use Lazyload
Avoid redirection chains
3. Conclusion
Key takeaways
- Compress images and serve them at the size they are displayed at, this is usually the largest single win.
- Audit installed apps regularly and remove leftover code from theme.liquid after uninstalling.
- Load third-party JavaScript asynchronously and only on the templates that need it.
- Pick a lightweight theme, then measure again after every app you add.
Read next: Shopify SEO: tips, tools and techniques, tools for managing a Shopify store, or our theme development services if the theme itself is the bottleneck.
Get in Touch - Get started with custom eCommerce solutions for your Shopify store
Lars Henning
- 42 ARTICLES
- 42 ARTICLES