惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

月光博客
月光博客
Martin Fowler
Martin Fowler
Last Week in AI
Last Week in AI
罗磊的独立博客
阮一峰的网络日志
阮一峰的网络日志
博客园 - 【当耐特】
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 三生石上(FineUI控件)
S
SegmentFault 最新的问题
V
Visual Studio Blog
Hugging Face - Blog
Hugging Face - Blog
雷峰网
雷峰网
博客园_首页
人人都是产品经理
人人都是产品经理
量子位
美团技术团队
The Cloudflare Blog
小众软件
小众软件
WordPress大学
WordPress大学
有赞技术团队
有赞技术团队
M
MIT News - Artificial intelligence
Microsoft Security Blog
Microsoft Security Blog
D
DataBreaches.Net
博客园 - Franky

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Why Your Shopify Store's LCP Is Still Over 3 Seconds (And...
Zaid Ahmad · 2026-05-13 · via DEV Community
Cover image for Why Your Shopify Store's LCP Is Still Over 3 Seconds (And the Fix Order I Use)

Zaid Ahmad

Most "Shopify speed optimization" advice tells you to compress images and
call it done. After working on 50+ Shopify storefronts, I can tell you
images are rarely the problem. The real LCP killers are usually further
down the stack — and you have to fix them in the right order, or you
waste hours on changes that don't move the needle.

Here's the exact triage order I follow.

1. Audit, don't guess

Before touching anything, run the page through PageSpeed Insights AND
WebPageTest. PSI gives you the Core Web Vitals number Google cares about.
WebPageTest gives you a waterfall that tells you why.

Look for these in the waterfall:

  • Render-blocking scripts in the
  • Large hero images without fetchpriority="high"
  • Third-party scripts loaded synchronously (the usual suspects: chat widgets, review apps, analytics stacks)

2. App audit — the 80/20 of Shopify performance

Open your theme's theme.liquid and search for every <script> tag
injected by an app. Each one is a candidate for removal or deferral.

A pattern I see constantly: stores running 4–5 review apps, 2 popup
apps, and 3 "AI personalization" apps. Each one loads ~50–200KB of JS
on every page. That's your problem.

What I actually do:

  • Uninstall apps that aren't generating revenue you can measure
  • For apps you keep, ask the dev support team if they have an async or deferred loading option (about half do; you just have to ask)
  • Move non-critical scripts to load on requestIdleCallback or after user interaction

3. Fix the hero image properly

If the LCP element is a hero image (it usually is on Shopify):

  • Add loading="eager" and fetchpriority="high"
  • Serve it as WebP at the actual display dimensions (not the source size)
  • Preload it: <link rel="preload" as="image" href="..." fetchpriority="high">

This alone usually drops LCP by 600–1,200ms on a typical Dawn-based
theme.

4. Liquid render time

The often-missed one. If your collection or product page is slow even
on a fast connection, your Liquid is doing too much work per request.
Common culprits:

  • Nested for loops over all_products
  • Unbounded metafield iteration
  • Custom snippets that re-render the same data

Use the Shopify theme inspector to find slow blocks. Cache what you can
in section data.

5. Fonts

Self-host critical fonts. Use font-display: swap. Subset to the
characters you actually use. This is the boring last 10% that takes
you from "fast enough" to "fast."


What I don't recommend: the dozens of "speed optimization" apps in the
Shopify App Store. Most of them just add another script to the page
they claim to make faster. The fix is almost always removing things,
not adding things.

If you're stuck on a specific Shopify store and want a second pair of
eyes, I write about this kind of work at zaidahmaddev.com
— happy to take a look.