Found the real reason your site’s still slow (it’s not your code)

I believed a lie for a long time. And I bet you’ve believed it too.

It goes something like this:

If I just optimize the code, the site will be fast.

So I minified CSS, lazy-loaded images, trimmed JavaScript bundles, compressed everything I could. Hours of work. Dozens of Lighthouse audits. And I watched the Core Web Vitals improve… until they didn’t.

The client’s LCP still sucked. CLS was twitchy. And FID? All over the place.

At first, I thought I missed something. Maybe another debounce? Maybe some micro-optimizations? But no, the codebase was lean. The real problem?

It wasn’t our code. It was someone else’s.

Specifically, third-party scripts I didn’t even realize were wreaking havoc. Marketing pixels. Chat widgets. “Harmless” analytics. They were dragging performance scores through the mud.

And if you’re in a similar boat, here’s what you need to know:

The Hidden Cost of “Free” Features

Modern marketing stacks are loaded with plugins, SDKs, and widgets – all promising insights, leads, or “engagement.”

But every one of these tools comes with a hidden fee: latency tax.

Here’s what that looks like in practice:

  • A single heatmap tool can delay Time to Interactive by 700ms
  • Social share widgets can block rendering on mobile
  • Consent managers can inject unpredictable layout shifts

Each one might seem negligible. But together? They turn your performance budget into a joke. And worse: the impact scales with success. The more traffic you have, the more people suffer through it.

What’s frustrating is that you often can’t trace it easily. These scripts load async, defer, or hide behind other loaders. You don’t see them in your dev tools unless you’re digging deep. Meanwhile, they’re tanking your Core Web Vitals – and making you look bad to users, SEO, and your boss.

But Wait, Isn’t This Just How the Web Works?

That’s the narrative: “Everybody uses these tools. It’s a necessary evil.”

But it’s not.

Because once you measure, isolate, and rethink your stack, you’ll realize: You don’t need half of them. You’re paying in performance for features you don’t even use, or could implement better yourself.

I’ve worked with teams who cut third-party script weight by 80% without losing a single KPI. They built lightweight alternatives. They embedded tracking server-side. They pushed non-critical scripts below the fold. And suddenly:

  • LCP improved by 1.2 seconds
  • CLS dropped by 70%
  • Conversion rates ticked up because the page finally loaded like a real app

The Tools That Don’t Lie

Here’s how to isolate the damage in your own stack:

  1. Use WebPageTest’s waterfall view: Look at third-party domains and sort by load time. Anything that isn’t essential and loads early? Mark it.
  2. Try Chrome’s Performance tab: Record a real user flow. Watch the CPU and network tabs like a hawk. Look for long tasks you didn’t write.
  3. Leverage request blocking in DevTools: Temporarily block scripts one-by-one and reload. See what changes. You’ll be shocked how much cleaner things feel.

Third-Party, First-Class Problems

The bigger your org, the harder this gets. Every team wants their own tools:

  • Marketing adds three analytics scripts
  • Sales drops in a chatbot
  • Product installs a NPS survey
  • Support wants a live help widget

Individually, they all have reasons. But collectively, they turn your site into a sluggish Frankenstein. And no one owns the problem until someone gets angry enough to care.

That someone should be you.

Here’s What I Recommend

If you’re tired of paying the latency tax for other people’s decisions, here’s what to do next:

  1. Create a script budget per page or route. Anything beyond that must go through performance review.
  2. Run quarterly audits on third-party scripts. Remove or replace anything that hasn’t shown value.
  3. Push tools server-side where possible. You’ll retain the data without punishing the user.
  4. Rethink timing: Delay non-critical scripts until after interaction, scroll, or idle time.

The Bottom Line

Performance isn’t just about your code, but about your decisions. Every script you add is a tradeoff, and most sites are trading blindly.

You can’t control everything. But you can control what you allow into your stack.

Because “small” scripts add up. And left unchecked, they will eat your performance alive, pixel by pixel, millisecond by millisecond.

Your users don’t care why your site is slow. They just bounce.

But when you start treating third-party scripts like the debt they are, which is visible, measurable, and manageable, you’ll start delivering the kind of experience that actually moves the needle.

That’s all for this week.

See you next Saturday.

Whenever You're Ready, Here's 2 Ways I Can Help You:

1. Subscribe to Behind The Screens: My weekly newsletter where each Saturday, I dig into a particular topic in online retail with a combination of insights, strategies and/or action guides to help you online retail grow. Sign up for free here.

2. Follow me on Social Media: I publish various tips and ideas for growing your business in a more socially-digestible manner. You can find me on LinkedIn and X.

Share this article on:

Subscribe to the Newsletter

Join the list of subscribers that get one tip to launch, grow, and scale their online retail business every week.