Internet users are more impatient than ever.
Some 70% of consumers admit that a slow-loading website impacts their willingness to buy from an online retailer. Which means it’s essential to strike a balance between providing beautiful, content-rich digital experiences and ensuring that they remain efficient.
Faster site speeds also results in more sales. Our data found that improving your site speed by just half a second could increase conversions.
Ahead, you’ll learn the top tips and tools for improving website speed to drive sales.
What is website speed optimization?
Website speed optimization is the strategy behind improving your page load speed. Also known as website performance optimization, its goal is to make your ecommerce store load as quickly as possible—before potential customers grow frustrated with their online experience and close their browser tab.
There are two key metrics used to measure speed:
- First Contentful Paint, which Google explains measures the time it takes your browser to render the first piece of DOM content after a user navigates to your page.
- Time to First Byte, which measures the time it takes for the server hosting a website to respond to a user’s browser.
Why is speed optimization important?
The faster your site, the better you’ll be at capturing customers—including ones abandoning a slower competitor’s site.
Google recommends a page load speed of two seconds for an ecommerce site. But in general, the faster, the better. A study from Semrush found that bounce almost triples if your page takes longer than three seconds to load.
If you’re operating a store with an average order value of $60 and 5,000 visitors each day, for example, a one-second delay in site speed could be costing you $9,000 a day.
Slow-loading sites also negatively impact your searchability and SEO rank. Google, the world’s largest search engine, prioritizes sites with strong core web vitals (i.e., website performance) in their search results.
Plus, if you’re investing in paid search as a customer acquisition channel, slow landing pages lower your Google Ads Quality Score—which means a higher cost per click. That’s a costly problem in a time where customer acquisition and advertising costs are disproportionately increasing across most industries.
Factors that affect website speed
Your ecommerce platform
Your business needs an ecommerce platform that has the infrastructure in place to help load times. As a platform user, you should talk with your platform provider about improvements to your site’s back end so that your websites load quickly for shoppers.
Rendering is the process of creating HTML markup when a user loads the page in their web browser. Your ecommerce infrastructure dictates the rendering process.
Our Storefront Renderer (SFR), for example, is an application dedicated to serving storefront requests as fast as possible. In fact, Shopify stores are the fastest in the world,* loading 1.8x faster than stores on other platforms.
If your commerce platform isn’t committed to making speed a top priority, then the rest of the suggestions that follow won’t make as big of a difference. Knowing that 93% of brands on Shopify have a fast store, more than any other major commerce platform, you can own your ecommerce site speed by working on the following items to further improve your website.
Hosting
Your ecommerce hosting service and infrastructure can influence your ecommerce website performance—especially during high-traffic and high-transaction days.
When researching hosting platform requirements, look out for:
- Memory or bandwidth limits for scaling during and seasonal promotions
- Projected traffic and peak user load to avoid crashes from a sudden spike in visitors
In addition, choose a platform that lets you avoid managing your own server. DTC retailers often have to spend a lot on IT infrastructure, and the costs have been steadily rising for years. We fully host all Shopify plans on our servers—servers that are trusted by some of the biggest retailers in the world due to their speed and reliability.
Before any major sales event, ask your commerce platform provider to help you prepare for unexpected traffic spikes or an influx of orders.
Site outages are never easy to deal with, but they can be especially bad for a $5 billion company during its biggest sales season of the year. JB Hi-Fi’s website was down for two hours during BFCM due to site issues. “We have seen high-profile retailers’ websites go down,” says Chris Lang, JB Hi-Fi’s general manager of engineering. “The whole country knows about it. It’s bad for customers, and it’s bad for the brand. We would do anything to avoid that.”
After replatforming to Shopify, JB Hi-Fi saw record-breaking sales, thanks to nearly double the traffic online during Black Friday Cyber Monday—all without website performance issues. With our cloud-based infrastructure, Shopify has a 99.98% overall uptime, with a storefront that loads 2.97 times faster than other SaaS platforms.
💡Read: Read more about JB Hi-Fi's story
Site architecture
Ecommerce websites use a variety of architectures to present information to both users and browsers. This can get complex as you scale, says Javier Moreno, data science manager at Shopify: “As brands grow and become more sophisticated, their websites become richer. This richness usually comes with a price; unless you are actively paying attention to speed, changes will slow down your site.”
In a bid to improve site speeds, some businesses turn to headless commerce—a concept that detaches the front end of your ecommerce website from the back-end platform that powers it.
Retailers using our commerce components take this to the next level. They take the ecommerce technologies they need, when they need them, instead of overloading a browser with too many coding snippets that negatively affect site speed.
Excessive third-party apps
If you have more than 20 ecommerce plugins installed on your store, you likely aren’t using them all. Maybe you installed some as a trial, then forgot to remove them. But those apps are still running in the background, and they may be actively hurting your website performance.
Enlist a developer to remove any unnecessary apps. Then run page speed tests using tools like GTmetrix or PageSpeed Insights, or even a manual test using Chrome’s Developer tools. Click the Network tab and reload the page.
Whenever you want to install a new app, ask yourself if the added value of this app will outweigh the possible slowdown of load speed.
The majority of script/CSS files for apps downloaded using the Shopify Admin are injected into the <head> of your theme.liquid file within {{ content_for_header }}.
An app needs to be rendered before any other code is loaded.
“Navigating this tension between faster loading versus the experiential and sales value of apps is why we async load scripts added with Script Tag API—so the page load isn’t halted,” says Jason Bowman, a solutions engineering team lead at Shopify. “However, <scripts> added directly into the <head> often has an immediate impact on performance.”
How to optimize your website speed
- Use a content delivery network
- Don’t go overboard with theme adjustments
- Enable quick view on category pages
- Remove unnecessary pop-ups
- Ease up on homepage hero sliders
- Compress, resize, and reduce images
- Use lite embeds for video
- Reduce redirects and broken links
- Enable lazy loading
- Unblock the browser from parser-blocking scripts
- Organize tracking with Google Tag Manager
- Beware of excessive Liquid loops
- Build Accelerated Mobile Pages
- Disable mobile video autoplay
- Optimize the mobile checkout
1. Use a content delivery network (CDN)
A content delivery network, or content distribution network (CDN), is a group of servers dispersed around the world. It distributes the content delivery load through the server closest to your visitor’s location, making local user experiences faster.
Since more ecommerce sites are going global, a CDN—or in the case of Shopify, dual CDNs—is a non-negotiable ingredient for platform performance.
Shopify offers a world-class CDN powered by Cloudflare at no extra cost. In recent years, Shopify has significantly improved server speed by utilizing single domain hosting for static content. This enhanced browser performance with HTTP/3 priorities and employed intelligent lazy loading techniques for page elements.
By consolidating hosting under a single domain instead of cdn.shopify.com, Shopify ensures faster loading times and better resource management. Chrome User Experience (CrUX) data over the past year shows a 35% improvement in Time to First Byte (TTFB) for storefronts, enhancing user experience globally. These optimizations lead to quicker page renders and a more consistent shopping experience, regardless of the user's location.
Overall, CDNs increase speed while reducing costs. “Getting our license, hosting, and CDN from Shopify saved us about $100,000 per year right off the bat,” says Red Dress Boutique owner Diana Harbour.
Take visual content—often the cause of slow website performance. Shopify informs the CDN when your assets (e.g., images, JavaScript, and CSS) have changed.
Do this with Shopify
Shopify businesses can use the asset_url filter and automatically append version numbers to all of the URLs we generate. For example, a version number appended to the end of a URL might look like this: ?v=1384022871. This filter tells the CDN to pull the correct version. Without it you may not see the asset you expect after you’ve made changes to your content.
Additionally, if you reference content directly in your CSS, the URL will be static. It also won’t carry the asset version updated automatically by Shopify.
To ensure automatic updates, change your CSS syntax to include the asset_url filter. For information on all of the URL filters that help to pull assets, visit the Shopify Help Center.
2. Don’t go overboard with theme adjustments
A website’s appearance makes or breaks a customer’s likelihood of engaging with it. Studies show that first impressions are 94% design related—and these decisions happen in record speed. A website visitors’ first impression is formed within one-tenth of a second.
That said, there’s a trade off between site speed and a beautiful theme—the latter of which often comes with cluttered code and excessive graphics. “You don’t need a theme with all the bells and whistles,” says Josh Stutt. “You need one that is clean, fast, and easy to navigate. I’ve seen greater than 50% improvement in homepage bounce rate for new visitors simply by switching to a more streamlined theme.”
Nirav Sheth, CEO and founder of Anatta, says, “Quick speed hacks will not build the foundation for long-term performance—only real speed improvements will, and that starts with optimizing your underlying theme architecture."
3. Enable quick view on category pages
Quick view pop-ups display a product—directly from a product listings page—rather than making you visit a product detail page.
In theory, quick view should save your customers time, but it can actually impede a customer’s experience on your ecommerce site:
- It adds an extra step to the customer’s journey.
- It can be clicked on by accident, which is frustrating to the user.
- It can be mistaken for a product page.
- Most importantly, it can significantly slow down your page loading time.
Quick-view pop-up implementations (either built into a theme or from an app) can sometimes preload the information from an entire product page in case a visitor selects the Quick View button.
But that’s an enormous amount of data to be loaded, especially on a collection page with 20 or 30 product thumbnails. Click mapping—a JavaScript-based tool that tracks where users scroll or move their cursor to click on your site pages—can help you see whether your customers are even using quick view.
Some apps that can help include:
Find Quick View in Shopify
It should be easy to see if there’s a Quick View button on your storefront product thumbnails. Check your theme customizer for an option to enable or disable this function. If you don’t see this option in the theme customizer, check to see if it’s coming from an app. If it is, it should be obvious how to remove it.
If the first two steps don’t help, it’s likely baked into the theme itself. In that case, you need a developer to identify and remove it. Find a Shopify Service Partner to assist with this process.
Use AJAX to pull the product information once a visitor clicks the Quick View pop-up button. Or, save a limited set of product information as data attributes on the product grid item. Then build the HTML and pop-up dynamically with JavaScript.
Either option is less ideal than removing the quick view option. The product information still has to be loaded for each product. Still, it’s better than downloading all the product images and links.
4. Remove unnecessary pop-ups
Pop-ups exist to display special offers or entice people to take the next step in the customer journey. Whether it’s redeeming a coupon or entering their email address, pop-ups help engage first-time visitors and open the door to future communication.
However, there’s a fine art to ecommerce pop-ups. Too many flashing graphics can be detrimental to site speed and performance—not to mention distract users from engaging with website content you’ve already optimized for conversions.
Set parameters around your use of pop-ups to prevent site speed delays. For example, you could create pop-up triggers so that extra code doesn’t contribute to a slow-loading website. Display immediately upon page load, such as exit intent or time delay pop-ups. Both of these triggers give some breathing room between initial page load and pop-up load.
5. Ease up on homepage hero sliders
Huge slideshows with multiple hero images are great for showing off your products. Unfortunately, there’s a downside: the size and quality required for a hero slider to look good can increase load times—especially if you have four to five slides.
Cut down the number of homepage slides or eliminate them completely. A single high-quality, well-thought-out hero image—with a clear call to action—helps draw your customers in quickly, because the brain processes visual imagery 60,000 times faster than it processes text.
If you must use a slider, follow UX best practices, such as:
- Stick with two to three slides
- Display the slides as static content sections rather than auto rotating carousels
- Use srcset or Lazy Load as a catch-all
Chubbies, for example, uses optimized images in lieu of a traditional homepage hero slider. Cofounder Tom Montgomery says, “We’ve been with Shopify from day one. None of us are engineers, so it’s great to be able to rely on Shopify’s experts so we can focus on innovating.”
6. Compress, resize, and reduce images
Images account for somewhere between 50% to 75% of your web pages’ total weight. This can be a greater problem as your ecommerce website scales. The more products you sell, the more image files you have on your server. Each image you use on a page creates a new HTTP request. While streamlining page speed, trimming images helps you do say more with less.
Alex Mirzaian, marketing manager for Eightvape, says, “When you’re constantly creating content through blog posts or creating many products a day, you tend to just add images to the website without thinking. Compressing images can help a lot when you have thousands of images on the site.”
You can minimize image size without reducing quality with lossless compression with tools like TinyJPG or TinyPNG.
Also, watch out for empty image sources—<img src = ’ ’>—in your code. These cause an excess burden on the browser by sending yet another request to your servers. A simple solution is CSS “sprites,” which consolidate multiple images like icons into one, limiting the server’s number of individual image requests. It also improves your page speed.
Shopify’s built-in image size parameters let you download the smallest possible image while retaining the quality. It asks Shopify for the exact image size that’s going to be displayed, then it cuts down the file size downloaded from the CDN and reduces the required browser-side scaling.
“One of our clients had a slow-loading site, so we started by optimizing the images,” says Maria Harutyunyan, cofounder of Loopex Digital. “We made them smaller and compressed them, which made a huge difference in how fast the pages load. In fact, the images now take up 60% less space and load much faster.”
7. Use lite embeds for video
Video is quickly becoming the language of the internet—some 91% of companies use video as a marketing tool. But depending on how they are embedded on your site, they can cause big differences in load time.
Not only does the standard embed code from YouTube make your site bloated—as some files are downloaded even before the visitor has clicked the Play button—it uses the <iframe> tag where the width and height of the video player are fixed. Your video doesn’t adjust to the screen size of different devices.
The solution is lite embeds, which loads the videos directly on your webpage. When the page initially loads, the site only embeds the thumbnail image of the YouTube video. The video player itself (and all its extra JavaScript) only loads when the user clicks inside the thumbnail.
YouTube thumbnails are about 15 kilobytes, so lite embeds can reduce the size of webpages by almost a megabyte.
8. Reduce redirects and broken links
Too many redirects and broken links can negatively impact performance and harm your SEO rankings.
Do some house cleaning on your redirects. For example, 302 redirects, which indicate a page has been moved temporarily, can hurt your SEO. They also trigger additional HTTP requests and delay data transfers.
Instead, use a “cacheable redirect” or Shopify’s built-in redirects function—which are 301s by default—within your navigation panel. And remember: never redirect URLs to pages that are themselves redirects.
Broken links for page elements like images, CSS, and JS files increase HTTP requests and sting your site speed. Use a tool like Broken Link Checker to remove them. Creating custom 404 error pages will assist visitors who accidentally enter an incorrect URL for your site.
9. Enable lazy loading
Lazy loading is a technique that prevents all content from immediately being loaded on a webpage. Ecommerce sites that use lazy loading only display content when users hit certain triggers.
We can see lazy loading in action when a user visits your ecommerce product page. Only content visible above the fold appears immediately upon arrival, such as the item’s title, imagery, and product description. Supporting content appears when users scroll beneath this section. User-generated content, social media carousels, and customer reviews are all loaded lazily to prevent the code overwhelming the server with too much information immediately upon loading.
GoGoChimp’s Chris McCarron used this page speed optimization strategy for a client’s ecommerce store: “There were a staggering number of images below the fold on every webpage. The problem with this is that a web browser will simultaneously download every image on a webpage, regardless of which images are visible. However, lazy load only downloads an image when it can be viewed within the browser.”
10. Unblock the browser from parser-blocking scripts
Before a browser can display a page to your customer, it has to go through a process called “parsing the HTML.” But parser-blocking scripts interrupt this process: When a browser encounters a parser-blocking script, it has to stop everything and focus only on running that script before it can continue doing anything else.
Fortunately, there’s an easy fix and all it takes is the “async” or “defer” attribute:
- Parser blocking: <script src="jquery.js"></script>
- Not parser blocking: <script src="jquery.js" defer></script>
It’s worth noting that JavaScript itself does not block browsers—it’s how JavaScript is loaded that determines whether or not it blocks the browser. After making these changes to your code, check to make sure your website is still offering the same desired experience.
11. Organize tracking with Google Tag Manager
Customer data fuels your ecommerce and digital marketing strategies. But collecting that data can also slow down your website performance. All those JavaScript tracking tags (e.g., for general analytics, conversions, goals, and behavioral retargeting) are often to blame.
Customer data collection can also be a time and resources burden for your developer, IT, or marketing teams. A tag management system (TMS) like Google Tag Manager condenses all your tags into one JavaScript request. If a tag failure causes your website to go down, having a TMS also helps you remove the tag quickly.
Nirav Sheth adds that when Anatta was optimizing the website speed of an ecommerce site in the beauty space, “What moved the needle for site speed more than anything else is the combination of leveraging Shopify APIs and cleaning up Google Tag Manager.”
One snippet of code is all you need to manage your Shopify store tags in one place with Google Tag Manager. To learn more, refer to the guidelines in the Shopify Help Center.
12. Beware of excessive Liquid loops
Liquid is a powerful Shopify coding language. But there are certain cases when you need to weigh the added benefits versus the tradeoffs.
Forloop iteration is one of those instances. Forloop means the system has to loop (e.g., crawl or search through) all the products in a collection, and happens when it’s looking for a specific condition (e.g., price or a tag)
These features can be beneficial in certain cases—like outputting images or product variants. They’re also helpful when you have a smaller number of products on a collection page, but be wary of the impact on load times.
Review your theme code to make sure you aren’t running liquid forloops multiple times looking for the same information. This can happen when multiple developers work on a theme and may duplicate tasks or introduce conflicting code. Removing these duplications will make your page load faster.
It’s often easier to use a simple product.options_with_values loop. Review the documentation to understand how our templating language and liquid loops work.
13. Build Accelerated Mobile Pages
Accelerated Mobile Pages (AMP) is a Google-sponsored project that reformats website content for mobile devices. On sites with AMP enabled, Google caches each page and reloads it each time a user visits from search. This reduces page load times, resulting in a two times increase in time spent on page and 20% increase in conversions compared to non-AMP pages.
Implement AMP on your ecommerce store with Shopify apps like AMP, Fire AMP, or The AMP App. Each eliminates complex code from cluttering your mobile website to load pages quickly.
14. Disable mobile video autoplay
Not all mobile internet users are browsing your ecommerce website with a strong network connection. Perhaps they’re an Allbirds customer scanning the retailer’s website mid-hike when the shoes they’re wearing are falling apart. Or they’re a Firebelly Tea customer ordering their next box of tea bags while waiting in the parking lot for their children to finish school.
Either way, these people might engage with the videos retailers use to communicate with potential customers on their mobile site. But automatically playing these videos can cause serious lags in site speed.
The mobile network connection needs to download a large file when a video is set to autoplay. When that’s replaced with a static thumbnail and optional button to trigger the video, the full-size file doesn’t need to be loaded through a weak internet connection. Visitors get their first meaningful view in record time.
15. Optimize the mobile checkout
The checkout process is often forgotten about when making improvements to mobile site speed. Home, product, and category pages get the most attention, largely because you don’t want potential customers to fall at the first hurdle: their initial mobile interaction with your store.
Failing to include the checkout process in your website speed optimization strategy will likely result in a higher cart abandonment rate. People are confident enough to hand select items they want to buy. But if they’re greeted with delays at the checkout, they need to really love the product in their cart to stick around. Or in other words, you risk losing the impulse shoppers.
Shop Pay empowers mobile shoppers to blaze through the checkout at record speed. According to an external study, retailers using Shop Pay checkouts have a 1.91 times higher mobile checkout-to-order rate than those going through regular checkout.
“The majority of our customers today are discovering new products on the go on their mobile devices, and if they have to fill out a form, we’ve lost them," says Benjamin Sehl, cofounder of Kotn. “Enabling Shop Pay in our checkout has really made the most painful point of the customer experience delightful, and since it’s tied into the million-merchant ecosystem, even new customers can check out in one click.”
Website speed testing tools
Each speed testing tool uses a different scoring method, much like every team will have a different definition of good site speed. Tools that provide “page load” timing have to select one specific time marker—like TTFB—in their results.
Use these speed tests to guide your decision-making, but keep an open mind. You must balance your site speed with building a user interface that optimizes your customer’s journey.
Shopify’s Web Performance dashboard
Shopify's Web Performance dashboard is a powerful tool designed to help ecommerce brands optimize their digital storefronts.
When page load times and user experience can make or break a sale, this dashboard provides invaluable insights into a store's performance across three critical Core Web Vitals:
- Loading speed
- Interactivity
- Visual stability.
The dashboard shows you how real customers experience the store on both desktops and mobile devices based on data collected over 28 days. You can watch how changes like app installations or theme updates impact your metrics over time by tracking your performance rankings, ranging from "good" to "poor."
With customizable filters and clear visualizations, merchants can identify areas for improvement and make data-driven decisions to improve store performance. Optimizing your Core Web Vitals is an effective way to boost conversion rates and your store's visibility in search results, too.
As Shopify continues to evolve its infrastructure, this dashboard serves as a crucial tool for merchants striving to deliver seamless, fast-loading experiences for modern online shoppers.
Shopify Site Speed Audit
Our Site Speed Audit lets you perform a competitive site speed analysis. Enter your site details and the current platform on which your site is hosted (e.g., Adobe Commerce (Magento), WooCommerce). The tool will measure various performance metrics, such as loading time, TTFB, and relevant speed factors.
Using data collected from millions of global transactions, the tool compares the speed metrics of your current site with the average or expected performance on Shopify. The tool then displays the comparison results. For example, it might show that the user’s WooCommerce site would be a certain percentage faster if hosted on Shopify.
Google PageSpeed Insights
PageSpeed Insights is a Google Labs tool that gives you personalized suggestions to improve your website performance. It also calls out the elements on your site that slow down the page, like CSS and JavaScript.
You can even look at your competitors’ mobile website performance. Knowing what’s wrong with their site can help you avoid the same mistakes.
GTMetrix
GTMetrix gives your website a grade on speed from A to F. It merges data from both Yslow and PageSpeed Insights to provide a website performance report that includes:
- Your page load speed
- Web Vitals and Lighthouse analysis
- Website speed optimization opportunities
- Page composition breakdown by requests and total byte size
Pingdom
Pingdom.com will score your website performance (ranging from 0% to 100%). It also has a useful “waterfall analysis” feature that helps you identify other major problem areas. This line-by-line scoring is a useful reference tool.
Optimize your website speed and watch your conversion soar
It’s important to get buy-in from your team to invest time and resources to optimize your website performance and speed. The data and tools we’ve shared can help you build a case.
Many of these optimizations are DIY. When it isn’t possible, you can enlist the help of a Shopify Partner. They can guide you on how to speed up your Shopify site.
Find a Shopify Partner todayRead more
- The Ecommerce Guide to Improving Your First Contentful Paint (FCP) Score
- Every Millisecond Matters: How to Optimize Page Load Time for Ecommerce Websites
- Top Website Performance Monitoring Tools
- Mobile Site Speed Optimization: How to Speed up a Mobile Site
- How to Monitor Website Performance
- How To Improve Website Performance
- 9 Essential Strategies for Web Performance Optimization
- Website Benchmarking: How To Benchmark Your Website
- Common Misconceptions about Google Lighthouse Scores
- How to Optimize Time to First Byte (TTFB) for a Lightning-Fast Ecommerce Website
Website speed optimization FAQ
How can I optimize my website speed?
- Compress and resize images.
- Enable lazy loading.
- Reduce redirects.
- Fix broken links.
- Use lite embeds for video.
- Enable browser caching.
- Remove excess code.
Why is my website speed so slow?
Your website site speed can be low if your site architecture isn’t optimized, the website uses too many large files (including images), or the ecommerce platform you’re using isn’t built for speed.
Why is website speed important in ecommerce?
Website speed directly impacts an online shopper’s likelihood of purchasing through your store. Studies show websites that load within one second have 2.5 times higher conversion rates than those that load within five.
What is a good website speed for SEO?
A good website speed is below two seconds, but the faster your store, the better. The majority of search engines consider page speed a ranking factor in their algorithms.