eCommerce

Shopify Speed Optimization: Fixing Core Web Vitals With 54 Apps

Sergey

17 min read

Key Takeaways

  • Shopify speed optimization starts with one question: whose code keeps the shopper's Chrome browser busy. On this Shopify Plus store, apps took up to 6.3 seconds of phone CPU time each. The heaviest theme script took 0.19 seconds.
  • All three Core Web Vitals for real shoppers moved into Google's "good" range: CLS 0.84 to 0.04, LCP 2.65 s to 2.21 s, INP 232 ms to 176 ms (P75, all devices, four weeks after release).
  • Of 13 speed problems on this Shopify Plus store, 7 were fixed in the Horizon theme code. Five depended on the store owner or app vendors, and one on the Shopify platform itself.
  • Removing Shopify apps the store did not need moved the mobile Lighthouse score from 27 to 40. Our theme fixes on top moved the desktop Lighthouse score from 78 to 86.
  • "Speed booster" apps from the Shopify App Store game the test instead of helping shoppers. The one on this store faked LCP for PageSpeed Insights servers only.

What is Shopify speed optimization?

Shopify speed optimization is the work of finding what slows a store down for real shoppers and removing it, in the theme, in the apps and in the store settings. This article walks through one Shopify Plus store with 54 installed apps that failed all three Core Web Vitals. We measured the cost of each app, fixed the theme, upgraded it to a new Horizon version without losing customizations, and brought the store into Google's "good" range in the first week after release.

The audit and fixes were done by Vitalii Kuzmin, front-end team lead at SYSINT.

Core Web Vitals, P75, all devices Google "good" Before 4 weeks after release
CLS, layout stability 0.1 or less 0.84 0.04
LCP, main element load 2.5 s or less 2.65 s 2.21 s
INP, response to a tap or click 200 ms or less 232 ms 176 ms

The store: Shopify Plus, the Horizon theme and 54 apps

The client is a niche US auto parts store on Shopify Plus. Most traffic is mobile: phones bring 84-87% of sessions. Desktop converts about six times better in Shopify analytics, though, and brings roughly half of all orders. A slow or jumpy desktop page hurts the device that brings half of Shopify orders here.

The store runs on Shopify's standard Horizon theme, heavily customized by a previous agency and two page builders. Almost everything beyond the basic features comes from apps: 54 are installed, and 24 of them are switched on in the theme as app embeds. Apps power the mega menu, the vehicle fitment finder (search by make and model), a smart cart with recommendations, reviews, two loyalty programs, forms, a dealer locator, shipping protection, analytics and 14 ad pixels.

The store launched fast on Shopify, each new need was solved with an app from the Shopify App Store, and nobody owned the total speed cost.

Why is this Shopify store slow? What the field data showed

Field data is what Google collects from real Chrome users visiting the site. It is different from a one-off PageSpeed test, and it is what counts. Before our work, the store failed all three Core Web Vitals:

  • LCP (Largest Contentful Paint) measures how fast the main element of the page appears. Good is 2.5 seconds or less.
  • INP (Interaction to Next Paint) measures how fast the page responds to a tap or click. Good is 200 ms or less.
  • CLS (Cumulative Layout Shift) measures how much the content jumps while the page loads. Good is 0.1 or less.

Desktop CLS was 1.09, eleven times over the limit. The Horizon header rebuilt itself four times per load, so the page jumped under the cursor. In Google Search Console, every checked desktop URL was rated "poor". On mobile, only 6% of URLs were "good". The mobile Lighthouse score of the home page was 27 out of 100. Total Blocking Time, the time scripts lock the page, was 3-4 seconds against a target of 0.2 seconds.

Does Shopify speed affect sales and rankings?

Search. Google states that Core Web Vitals are used by its ranking systems (Google Search Central). Google uses real-user data, not the PageSpeed score. Speed is not the main ranking signal, but where competitors have similar content, red Core Web Vitals work against the store.

Conversion. Shopify analyzed data from its own merchants and published the link between speed and sales (Shopify Enterprise):

  • every 100 ms of LCP is associated with about 3.5% lower conversion;
  • every 32 ms of INP is associated with about 1.5% lower conversion;
  • stores with a 2.5 s LCP convert about 30% worse than stores with a 1.5 s LCP.

Shopify itself says this is correlation, not cause and effect. Its data showed no such link for CLS, but Shopify still recommends fixing large layout shifts. This client's CLS was large: eleven times the Google limit, and worst on desktop, the device that brings half the orders.

How we ran the Shopify performance audit

We never edited the live Shopify theme. Every change went into a copy of the Horizon theme, was measured in Lighthouse before and after, and was published only with the client's approval. The Shopify speed audit had four parts.

  1. Field data from real shoppers. The Shopify Web performance report and ShopifyQL queries by device and page type, Search Console snapshots, PageSpeed Insights with CrUX data. CLS was between 0.6 and 1.5 on every page type, even the 404 page. That pointed to a shared element: the Horizon header.
  2. Lab measurements. Lighthouse CLI with 5 runs per page and the median taken, Chrome DevTools Performance recordings with 4x CPU slowdown and Slow 4G. A custom PerformanceObserver logged every layout shift with its source on 8 pages at 6 screen widths. Main-thread work in Chrome DevTools was split by the owner of each script. We measured only the Shopify preview of the theme copy, never the live site.
  3. App audit. For each major app: how it is connected (app embed, app block, ScriptTag or code in the theme), what it loads, what it costs in speed, whether we can reach its settings, and what the theme can do about it.
  4. Experiments that split the blame. A test copy of the Horizon theme with Shopify apps turned off, then apps enabled one at a time on top of a clean page. This gave us the price of each app in Lighthouse points.

After release, we checked the result again on real shoppers: in Shopify Web performance and in the session and conversion reports.

What slows a Shopify store down: apps or the theme?

Apps slow a Shopify store down far more than the theme does. Code reaches a Shopify storefront in five ways, and the theme developer fully controls only one of them. The store owner switches on the rest in the Shopify admin, and app vendors write and change that code on their own servers, without notice.

Five ways code reaches a Shopify storefront; the theme developer controls only the theme code

On this store, the theme code used the least phone CPU of all. The heaviest theme script ran for 0.19 seconds. In total, the home page kept the main thread busy for almost half a minute in a low-end phone simulation, and nearly all of that time went to apps and their settings embedded in the HTML.

Main-thread time by code owner on the Shopify home page: apps up to 6.3 seconds, the heaviest theme script 0.19 seconds

Then we turned Shopify apps off in groups on the test copy of the Horizon theme. "Needed for sales" here means the vehicle fitment finder, mega menu, smart cart, shipping protection and product reviews. To price individual features, each app was enabled on its own on top of the home page without apps. Both Lighthouse charts are in the slider below.

The Lighthouse costs do not simply add up, because Shopify apps share some of the work. The most expensive were the smart cart, the mega menu and a scatter of small embeds, each of which looked small in isolation.

What can a developer fix in the Shopify theme?

A Shopify theme developer controls how the theme loads its own code and how it makes room for apps. Out of 13 problems we found on this store, 7 were closed in the Horizon theme:

  • reserved space for the menu and app widgets, and stopped the theme from wiping the menu when it re-rendered the header;
  • moved the styles of the fitment finder widgets into the theme, because they arrived later than the widgets themselves;
  • narrowed a CSS rule that made every app insert recalculate the styles of the whole page;
  • removed scripts of a disabled "speed booster" app (worth 8-14 mobile Lighthouse points) and of a chat that was no longer used;
  • replaced Font Awesome with SVG icons;
  • deferred loading of slides and videos.

Why the header jumped: the CLS fix

The main source of CLS was the header: it rebuilt four times per page load. The fitment finder app inserted its search bar, the mega menu filled its row, the theme requested the header from the server again and wiped the menu, and then the menu was inserted again. Each author's code worked correctly on its own. Only a frame-by-frame breakdown in Chrome DevTools showed the cause.

We reserved space for the menu and widgets from the first frame and marked the menu wrapper with the data-skip-subtree-update attribute, so the theme no longer re-renders it. In the lab, desktop CLS dropped from 1.09-1.21 to 0.0004. For real shoppers, desktop CLS went from 1.09 to 0.03.

The Shopify header rebuilt four times per page load before the fix and stays in place after it

What can only the store owner or the app vendor fix?

What the owner decides. Only the Shopify store owner can turn off an app, change its settings or replace it with a built-in feature. The Shopify theme developer often has no access to those settings at all. Here we recommended replacing the mega menu app with the theme's own menu (13-17 mobile points), turning off the carousel inside the closed cart and the auto-scrolling reviews (up to 1.4 seconds of phone CPU), and cutting down the 14 ad pixels.

What only the app vendor can fix. Shopify app code runs from the app vendor's servers. If an app's scripts load twice, or the dealer locator app pulls its files onto every page for the sake of one, the Horizon theme cannot fix that. The only route is the app vendor's support team.

What nobody can change. The Shopify pixel manager and analytics keep a low-end phone busy for about 0.7 seconds with any theme.

What can you do with a Shopify app embed?

A Shopify app embed is app code that Shopify inserts after the theme has built the page, so the theme cannot remove or defer it. Officially, the Shopify store owner has three options:

  1. switch the embed off, usually for the whole site;
  2. add the app as an app block only to the templates that need it, if the vendor supports it;
  3. change the settings the vendor exposes.

Everything else, such as a blocking script at the top of the page or rewriting HTML through a proxy in front of Shopify, is fragile and not officially supported. That is why part of Shopify speed optimization lives in app settings and owner decisions, not in code.

The "speed booster" that faked the PageSpeed result

In the Horizon theme code we found an obfuscated script from a "speed booster" app. It ran only in GTmetrix and on Linux computers, and PageSpeed Insights servers run on Linux. There, the script drew an invisible full-screen character, and the test took it for the main element of the page: LCP became equal to FCP. Real shoppers got nothing from it, and the app itself cost 8-14 mobile points.

To check your own store: if mobile LCP equals FCP in your PageSpeed report, look at which element the test treats as the largest one.

What technical debt do Shopify apps leave behind?

Shopify apps leave duplicate features, leftover scripts and hidden settings that slow every update. Shopify lets a store start selling within days: a theme plus apps from the Shopify App Store, almost without developers. Every Shopify app and every quick tweak adds technical debt. It stays invisible while the store sells and shows up in Core Web Vitals and in every theme update. This is what had built up here:

  • Duplicate features. Two review systems, two loyalty programs, four upsell apps, seven analytics systems in the theme code. Each loads its full code, up to three different copies of jQuery on one page.
  • Leftovers. The disabled "speed booster", a replaced chat and layouts from a deleted page builder kept loading or sat in the theme. Turning an app off in its Shopify dashboard does not remove its code from the theme.
  • Hidden bindings. The menu placement and the cart-opening script are set in the apps' own settings and point to theme markup. They cannot be found in the Horizon theme code and break silently when the markup changes.
  • Patches over someone else's code. To stop the CLS shifts, we copied the fitment finder app's critical CSS into the theme. When the app updates, that CSS copy has to be checked.
  • Access. Some apps need owner rights or a separate login to the vendor's dashboard, so every speed setting turns into an email thread.

Why doesn't the Update button update a customized Horizon theme?

The Shopify Update button only replaces stock files that nobody edited. The client asked us to update Horizon from version 3.x to 4.x and keep every customization. In the Shopify admin, this is one Update button. In practice, it was manual work:

  1. At first the button refused to run: 4 files from the previous agency had color scheme settings that no longer exist in the new version.
  2. Then it found conflicts in 18 files and did not carry over a single customization in the standard files. Without a manual git merge, the Shopify store would have lost its menu, search, page builder, analytics and all the speed fixes.
  3. The automatic settings conversion reduced 11 color schemes to a 6-color palette, broke the product template and the page builder pages, and dropped 1,367 lines of translations.
  4. In Horizon 4.x, the menu app and the cart opening stopped working because of those hidden bindings.
  5. Acceptance testing at 6 screen widths found 23 differences from the live site and 25 changes in the new version. Each of the 48 items got a decision.

Horizon theme update: 320 of 661 files moved to the new version without manual work

Shopify has no child themes. Every major update of a customized Shopify theme means a manual three-way merge: the old stock version, the customized theme and the new stock version. We moved the customizations by hand through git, wrote a 12-step script to repair the settings, and published the new version with every customization in place. The next major Horizon version will go the same way unless the app debt is reduced.

Did Shopify Core Web Vitals and conversion improve?

Shopify Core Web Vitals improved on all three metrics for real shoppers. CLS dropped twentyfold and stayed in the good range from the first week after release. LCP and INP kept improving after the theme update, because the new Horizon version also brought Shopify's own speed improvements.

Weekly field Core Web Vitals before and after the release: CLS 0.84 to 0.04, LCP 2.6 s to 1.7 s, INP 248 ms to 160 ms

This is real-shopper field data from Shopify Web performance, not Lighthouse lab data. The table at the top shows P75 over the four weeks after release. The chart shows weekly P75, so its last point (week 3, after the theme update) is lower: LCP 1.7 s, INP 160 ms. By device:

  • Desktop: CLS 1.09 to 0.03, INP 168 ms to 112 ms.
  • Mobile: CLS 0.15 to 0.08, LCP 2.74 s to 2.27 s, INP 248 ms to 200 ms.

What happened to sales. In Shopify analytics, in the first 16 days after release, the order conversion rate was on average 9% higher than in the three weeks before it: 12% higher on phones and 7% higher on desktop. On desktop, the share of sessions that reached checkout grew by 13%. This was not an A/B test, and part of the growth may come from the season and advertising.

The Lighthouse lab scores moved too. Removing unneeded Shopify apps took the mobile Lighthouse score from 27 to 40 and desktop from 70 to 78. Our theme fixes on top brought them to 42 and 86.

Shopify speed optimization checklist for store owners

The Shopify speed optimization checklist starts with apps, not the theme. On this Shopify Plus store, getting rid of what was not needed returned more speed than any theme fix. That is why we start with an app audit and measure speed on real shoppers through Core Web Vitals.

If your Shopify store is just launching

Use what the theme and Shopify already give you: the theme menu, Search & Discovery filters, Shopify Forms. Test every app on a copy of the theme before installing it: does it connect as a block only on the pages that need it, does it pull its own jQuery and fonts, how many points does it cost.

If you already have dozens of Shopify apps

An app audit with Lighthouse measurements shows the price of each one. Then follow "one job, one app": remove duplicate reviews, loyalty, upsell and analytics, and replace apps with built-in features where they are enough. Here, the theme menu instead of the menu app would return 13-17 points. When you delete a Shopify app, remove its code from the theme too, or its scripts keep loading.

If a key feature is unique and heavy

For a fitment finder, a product configurator or a mega menu, keep the data in metafields and metaobjects and render it with the theme, and move discount and cart rules to Shopify Functions. This is how we built variant selection for this store: it works for about 14% of the catalog without a single app. Full control over the storefront comes with headless on Hydrogen, but that costs more, needs your own team, and every feature that came from app embeds has to be rebuilt. For an engine parts manufacturer we built a parts finder by vehicle, engine and exact dimensions on Magento, so we know what such a feature takes when you own its code.

In every case

Set your target on real-shopper Core Web Vitals, not on the PageSpeed score, and do not buy "speed boosters". On this store, one faked LCP for the test and slowed the site down for shoppers.

If your store runs on Magento rather than Shopify, the same approach applies, with different culprits: see what a Magento performance audit checks. And if you are weighing a move between the two platforms, read our Magento vs Shopify comparison of total cost.

Summary: Shopify speed optimization in five points

  • Measure Core Web Vitals on real shoppers (Search Console, Shopify Web performance, CrUX), not the PageSpeed score.
  • Split main-thread time by code owner: on this Shopify Plus store, apps cost up to 6.3 s of phone CPU, the Horizon theme 0.19 s.
  • Price every app in Lighthouse points on a copy of the theme, then keep one app per job.
  • Fix what the theme controls: reserved space for app widgets, no header re-render, deferred media.
  • Plan theme updates as a three-way merge, because Shopify has no child themes.

FAQ

Why is my Shopify store slow?

Often the main cause is Shopify apps, not the theme. Each app embed and ScriptTag adds code that Shopify injects into every page, and the theme cannot remove or defer it. On this store, apps used up to 6.3 seconds of phone CPU each, while the heaviest theme script used 0.19 seconds. An app audit on a copy of the theme shows which apps cost the most Lighthouse points.

Do Shopify speed apps work?

Shopify speed apps rarely help real shoppers. They cannot remove the code of other apps, because Shopify inserts app embeds after the theme is built. The "speed booster" on this store detected PageSpeed servers and faked the LCP result for them only, while costing 8-14 mobile Lighthouse points for everyone else.

Do Core Web Vitals affect Shopify SEO?

Yes. Google uses Core Web Vitals in its ranking systems and measures them on real Chrome users, not with the PageSpeed score. It is not the main ranking signal, but when competitors have similar content, failing Core Web Vitals work against you. You can see your status in the Core Web Vitals report in Google Search Console.

How many apps is too many on Shopify?

There is no safe number; the price depends on the app. On this store, product reviews cost almost nothing (0-5 points, within measurement noise), while the smart cart cost 15-18 mobile Lighthouse points and the mega menu 13-17. Measure each app on a test copy of the theme and keep one app per job.

What does a Shopify speed optimization service include?

A proper Shopify speed optimization service covers field data from real shoppers, lab measurements on a copy of the theme, an audit of every app and a list of fixes split by who can make them: the theme developer, the store owner or the app vendor. Fixes are released only after measuring before and after, and the result is checked again on real shoppers after release.

Is your Shopify store slow?

We audit Shopify and Shopify Plus stores the same way: field data first, apps measured one by one on a copy of your theme, fixes released only after measuring before and after. You get a clear split of what we fix in the theme and what you decide on the apps. See Shopify support: theme fixes, app conflicts and speed, with a fixed estimate per task. Building something new instead? See Shopify development.

Are we a good fit? Let's discuss.

Tell us about your store and what you want to get done. If we're a fit, you get a clear next step. If not, we'll tell you.

  • Reply within one business day
  • Fixed estimate before we start
  • No commitment