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

推荐订阅源

J
Java Code Geeks
Stack Overflow Blog
Stack Overflow Blog
B
Blog RSS Feed
C
Check Point Blog
D
Docker
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
Google DeepMind News
Google DeepMind News
MongoDB | Blog
MongoDB | Blog
博客园_首页
Apple Machine Learning Research
Apple Machine Learning Research
量子位
有赞技术团队
有赞技术团队
IT之家
IT之家
大猫的无限游戏
大猫的无限游戏
D
DataBreaches.Net
M
MIT News - Artificial intelligence
B
Blog
阮一峰的网络日志
阮一峰的网络日志
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
腾讯CDC
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
V
V2EX
月光博客
月光博客

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
Core Web Vitals from 74 to 91: A Real Tax Practitioner Si...
Joseph Anady · 2026-05-25 · via DEV Community

Joseph Anady

A solo tax practitioner site was scoring PSI mobile performance 74 with LCP 5.2 seconds and CLS 0.135 on the highest-traffic blog post. The brand is solid, the content is solid, but Google ranking signal was getting pulled down by render-path issues that took 90 minutes to find and fix. Here is exactly what was wrong and exactly what we did.

Short answer: The hero H1 was being hidden by a GSAP opacity: 0 entrance animation, pushing LCP to the moment the animation completed. The blog CLS was font-swap reflow on web fonts loaded without metric overrides. Three external CDN scripts were adding round-trips that did not need to exist. Four small changes; PSI 74 -> 91, LCP 5.2s -> 3.16s, CLS 0.135 -> 0.000.

Starting state

Page Performance LCP CLS
Homepage 74 5.2s unmeasured
Blog: quarterly estimated taxes 75 4.5s 0.135

The LCP killer

The hero H1 had a data-hero attribute. The site animations.js ran a GSAP reveal animation that started every [data-hero] element at opacity: 0 and animated to opacity: 1 over 900 milliseconds with a 100-millisecond initial delay. Lighthouse measures LCP as the moment the largest visible content reaches full opacity. The H1 was the largest text element in the viewport, so LCP could not fire until the GSAP timeline finished.

The fix: convert the entrance animation to transform-only.

// Before
gsap.fromTo(
  kids,
  { opacity: 0, y: 16 },
  { opacity: 1, y: 0, duration: 0.9, stagger: 0.12, delay: 0.1 }
);

// After
gsap.fromTo(
  kids,
  { y: 16 },
  { y: 0, duration: 0.9, stagger: 0.12, delay: 0.1, immediateRender: false }
);

Enter fullscreen mode Exit fullscreen mode

The H1 now paints at opacity 1 from the first frame. The entrance animation still runs as a 16-pixel vertical lift, visually identical.

The third-party CDN drag

The HTML loaded three external CDN scripts: GSAP from cdnjs, ScrollTrigger from cdnjs, anime.js from cdnjs, and Lucide icons from unpkg. Total: about 150 KB across four domains with separate DNS resolution and TLS handshakes.

Anime.js was loaded but never referenced in any JavaScript file. Pure dead weight. Dropped.

The other three were moved to local /assets/js/vendor/. Same code, no third-party DNS lookup.

The CLS culprit

Blog post CLS 0.135 came from web font swap. The site uses Playfair Display 600 and Inter 400, self-hosted with font-display: swap. On first paint, browser used Georgia and Arial fallbacks. When the web fonts loaded, the swap shifted every line of body text.

The fix uses the size-adjust pattern. See my deep-dive on the size-adjust pattern for the full mechanics.

Missing font preloads

The H1 used three fonts: Playfair Display 600 (preloaded), Cormorant Garamond Italic (not preloaded), Inter 500 (not preloaded). The two non-preloaded fonts loaded after the CSS parse, delaying H1 final-paint LCP by another 1.2 seconds on mobile 4G simulation.

Added two <link rel="preload"> hints. LCP dropped another 1.2 seconds after this single change.

Final numbers

Metric Before After
Homepage mobile performance 74 91
Homepage LCP 5.2s 3.16s
Homepage CLS unmeasured 0.000
Blog mobile performance 75 81
Blog LCP 4.5s 3.99s
Blog CLS 0.135 0.000
Desktop performance 88 97

Total intervention: 90 minutes of work, four code changes, zero design changes, zero downtime.

Lessons

  • Entrance animations that set opacity: 0 on LCP-eligible elements are the most common LCP killer on small business sites built in the last three years.
  • Web fonts loaded without metric-override fallbacks are the most common CLS source on content sites with serif headings.
  • Missing font preloads for fonts actually used in the hero are the most common reason LCP stalls between 3 and 5 seconds.

If a site you own is in similar shape, ThatDevPro offers a free written audit. Same diagnostic loop regardless of stack.

For the full case study, see the original at thatdevpro.com.


Posted from ThatDevPro, SDVOSB veteran-owned web development and AI engineering studio. Originally diagnosed and shipped on the ThatDeveloperGuy Debian + nginx stack.