Case study
DTC wellness brand ($1M+/month)
From a legacy theme buried under apps to Online Store 2.0 with Vite and Alpine.js, with no jQuery and without losing a single product page in production.
Context
A wellness brand that grew past $1M a month on Shopify in under five years. Its Vintage-era theme had piled up technical debt that slowed down every CRO test and every new integration.
Problem
The theme carried 40+ apps, installed and half uninstalled, jQuery scattered across templates and custom JavaScript with no build system. Mobile load time was over 5 seconds, the product page shipped 280KB of legacy JavaScript, and the cart drawer had three separate code paths written by three different developers.
Constraint
Zero downtime, zero lost SKUs and zero CRO regressions customers could see during the transition.
What I built
I went after the debt with three architecture decisions, not patches.
First, Vite as the build system: I replaced manual bundling with module resolution, tree-shaking and per-template code splitting, so each page only pays for the code it actually uses.
Second, Alpine.js instead of jQuery: I removed the 90KB framework and rewrote the interactions in declarative syntax. The cart drawer, which had three code paths from three developers, went from about 600 lines to about 50 lines of declarative state.
Third, a custom section architecture on Online Store 2.0, with strict block schemas and extension points, so the team could stop patching the theme by hand every time a new app came in.
None of this happened behind closed doors. The migration ran in phases: I published a parallel theme and rolled it out section by section against real production traffic before it became the live theme. That way the team validated every piece without putting sales at risk.
The underlying lesson: modernizing a theme is foundation work, not a CRO intervention. The goal was to remove the technical tax that had been blocking every test and every integration the team wanted to launch.
Result
LCP 1.8s faster, 280KB of JavaScript removed from the product page and 62% less JS on its first load.