Shopify engineering, from production
Why most Shopify stores are slow, and what actually fixes it.
I'm Sergio Herrera, lead e-commerce developer at a US DTC brand. I write about performance, checkout and Shopify Functions for the people who run stores: what works, what breaks, and why.

From the blog
Notes from production
Speed without a redesign: how we took a Shopify store from 3.5s to 2s
An old theme, a JavaScript library on every page, and no budget for a redesign. Here's how we rebuilt a Shopify store section by section and cut its load time from about 3.5 seconds to about 2.
How to find which apps are slowing down your Shopify store
Don't guess from the app list. Measure what each app costs in the browser, turn them off one at a time on a duplicate theme, and keep only the ones that pay for their JavaScript.
How to build a custom Recharge subscribe and save selector on Shopify
Recharge runs on Shopify selling plans, so you can build your own subscribe and save widget in Liquid. Here's how I build it, and the mistakes that quietly turn subscriptions into one-time orders.
Field notes
Lessons from real stores
US DTC brand
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.
Water bottle brand
A homepage A/B test: trust badges and social proof against the current version. The variant won with 50% more conversions and 58% more revenue per visitor.
Topics
What I write about
Themes and performance
Why stores get slow and how to find the cause: theme code, app scripts, images and what each one costs on mobile.
Read: How to find which apps are slowing down your Shopify store →
Checkout and Functions
Cart and checkout logic that holds up: Checkout Extensibility, discounts, bundles and gifts built with Shopify Functions instead of another app.
Read: Shopify GWP: make the gift remove itself when its product is removed →
Structured content
Modeling metafields and metaobjects before any Liquid, so product content stays easy to change without a developer.
Read the blog →
Lighthouse · mobile
CLS 0 · this site, audited now
About
Not blog theory. What I ship in production.
Five years on Shopify, today Lead E-commerce Developer at a US DTC brand. What you read here is what I run on real stores every day.
This page scores 100 across all four Lighthouse categories. I practice what I preach.
More about me