SolisReach
← Journal
Web Performance6 min read

Third-party scripts are the silent killer of a fast website

Written by the SolisReach team

A well-built, genuinely fast site can still end up feeling sluggish in practice once marketing has layered on a live chat widget, three separate analytics tools, an ad pixel for every platform currently in use, and a heatmap tracking tool, each one added independently over time by a different person, none of them ever removed once added. We've audited sites where third-party scripts accounted for more of the total page weight than all the actual content on the page combined.

Audit what's actually still genuinely needed

Most sites accumulate scripts steadily over years without anyone ever formally reviewing or removing the ones that quietly stopped being used or checked. A genuine quarterly audit of every third-party script actually loading on the site, cross-checked honestly against whether anyone still actually looks at that specific tool's dashboard, routinely finds two or three that can simply be deleted outright with zero real business impact.

Load order matters as much as raw script count

A single unnecessary script loaded synchronously in the document head, before any visible content ever renders, can cost more real time than five other scripts loaded asynchronously after the page's main content has already appeared. We move every genuinely non-critical script to load after the page's core content, deferred or lazy-loaded, so marketing and analytics tooling never competes directly with the actual page for the browser's limited attention during the critical initial rendering window.

A tag manager helps organize the problem, but isn't itself a fix

Consolidating scripts through a tag manager like Google Tag Manager makes them considerably easier to audit, control, and reason about as a group, but a tag manager configured with twenty different tags all set to fire on every single page load is still, functionally, twenty scripts' worth of real weight and execution time. The tool centralizes the problem in one place. It doesn't automatically solve it without someone actually sitting down and reviewing what's configured to fire, and why.

Set a real, specific performance budget and actually defend it

We set an explicit, specific performance budget with clients, a maximum acceptable total page weight or a maximum acceptable LCP time, and treat any new script request from marketing or another team against that budget directly and explicitly: what does this specific tool actually cost in measured load time, and is that cost genuinely worth what it delivers. Without an explicit, defended budget like this, scripts accumulate steadily by default, because adding any single one always feels individually harmless in isolation.

A real before-and-after from one of these audits

On one client's site, a quarterly audit found eleven active third-party scripts, six of which nobody on the client's own team could explain the purpose of when we asked directly. Removing those six, along with deferring the remaining five, cut total page weight by close to 40 percent and moved mobile LCP from 3.8 seconds to 2.1 seconds without touching a single line of the site's actual content or design.

That result came entirely from subtraction, not any new optimization technique. It's usually the fastest, cheapest performance win available on a site that's been live for more than a year or two.

On one client's site, a quarterly audit found eleven active third-party scripts, six of which nobody on the client's own team could explain the purpose of when we asked directly.

Who actually gets to add a new script, and under what process

Script sprawl rarely happens because one person made a bad decision. It happens because five different people, over two years, each independently had the authority to paste a snippet into the site's header with nobody else ever needing to know or approve it. We now require any new third-party script, however small it seems, to go through a single named owner who checks it against the performance budget before it ships, rather than letting it get added directly by whichever team requested it.

This has occasionally slowed down a marketing team wanting to add a tool the same day they discovered it, and that friction is deliberate. A script that's genuinely worth adding is worth a same-week review. One that isn't worth a few days of review usually wasn't worth adding to a production site in the first place.

Third-party scripts and their hidden privacy and security surface

Beyond raw performance, every third-party script added to a page is also a piece of code you didn't write, running with broad access on a page your users trust, and a vendor's own security incident can become your site's problem instantly if that script gets compromised upstream. We've seen this happen industry-wide with widely used third-party widgets that were briefly compromised and started injecting malicious content onto thousands of sites simultaneously, entirely outside any individual site owner's control.

This is part of why we treat the third-party script audit as a security review as much as a performance one, checking not just whether a script is fast, but whether the vendor behind it has a credible security track record and whether the specific data access it requests is actually proportional to what it needs to function.

How we handle a marketing team that insists every tag is essential

Marketing and analytics teams often resist script removal because every individual tool feels essential to whoever requested it, and losing access to even one dashboard can feel like losing visibility they've come to depend on. We handle this by asking for actual usage evidence rather than debating necessity in the abstract: when was this dashboard last opened, and by whom, according to the tool's own login history.

That question alone resolves most of these disagreements quickly, since a tool nobody has actually logged into in six months is difficult to defend as essential once the usage data is sitting in front of everyone in the room. For the genuinely still-used tools, we work with the marketing team directly on load timing and deferral instead of removal, which usually satisfies both the performance goal and the team's real need to keep their visibility intact.

Cookie consent banners and their underlying consent management platforms have become their own meaningful category of third-party script weight, often loaded before anything else on the page so they can gate every other script's execution correctly, which means a poorly optimized consent tool can single-handedly delay the entire rest of the page. We now include the consent management script itself in every performance budget conversation, not just the tools it's gating, since it's frequently one of the heaviest single scripts on a modern site.

Choosing a lighter-weight consent platform, and configuring it to block only what genuinely needs blocking rather than defaulting to a maximally cautious configuration, has meaningfully improved load times on several client sites without changing anything about their actual privacy compliance posture.

Start a project

Want this applied to your site?

We run a Core Web Vitals and SEO audit before quoting any performance marketing engagement, and we're happy to share what we'd find on yours.