Think Build Implement Repeat
London, UK +44 7367 067226
WhatsApp FOLLOW f in X
  1. Home
  2. Blog
  3. The Code You Did Not Write, Running on Every Page
WordPress

The Code You Did Not Write, Running on Every Page

Third-party scripts on WordPress, from analytics to chat and maps: auditing what loads, the performance and privacy cost, and loading them properly.

Updated 2 min readBy SpiderHunts Technologies

Free estimateNo obligation

Get a free estimate

Tell us what you need. A senior engineer reads every enquiry.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →

Quick answer — TL;DR

Every third-party script is a performance cost, a privacy consideration and a dependency. Audit what is loading — most sites carry two or three nobody remembers adding.

Audit what is actually loading

Open your site with the browser's network tab and look at the external domains being contacted. Most businesses are surprised.

Tracking pixels from campaigns that ended two years ago are extremely common. They cost speed and they carry privacy obligations for no benefit whatsoever.

What each one costs

ScriptTypical cost
AnalyticsSmall, usually justified
Chat widgetModerate — load it lazily
Embedded mapLarge — consider a static image with a link
Web fontsModerate — self-host where licensing allows
Advertising pixelsModerate, and multiplied by how many you have
Social embedsLarge, per embed

Load them properly

  • Defer or load asynchronously, never blocking
  • Only on pages that need them — a map script on every page is waste
  • Lazily, after the main content, for anything below the fold
  • Self-host what you can, particularly fonts

They are a privacy consideration too

Third-party scripts frequently set cookies and send data. That affects your consent obligations and what your privacy notice must say.

Removing the ones you do not need simplifies both the performance and the compliance picture.

They are also a dependency

A third-party script that becomes slow or unavailable affects your site. Loading them asynchronously means a slow service degrades rather than blocks.

That single precaution prevents a third party's outage becoming yours.

FAQ

Frequently asked questions

The questions readers ask us after this guide.

Still have a question?

Ask us directly — a senior engineer will get back to you.

Ask about your project

How many is too many?

Every one should be justifiable. Most business sites need three or four; many carry ten.

Can we self-host fonts?

Usually, and it is faster and simpler for privacy. Check the licence permits it.

Do embedded maps really cost that much?

An interactive map is one of the heaviest things you can add. A static image linking to directions is usually enough.

How do we find what is loading?

Browser developer tools, network tab, filtered by domain. Ten minutes and it is usually revealing.

Keep reading

More on WordPress

WordPress

Building WordPress Properly, Not Quickly

Building WordPress properly for a business that depends on its site: fewer plugins, a well-chosen theme, real content structure, speed and easy editing.

WordPress

Every Plugin Is a Decision You Live With

Plugin discipline in WordPress: five questions to ask before installing, auditing the plugins you have, which are worth keeping and removing unused ones.

Start here

Never audited what your site loads?

Ten minutes in the network tab is usually revealing. Happy to run through it with you.

  1. You tell us what you needTwo minutes on the form, or a message on WhatsApp.
  2. A senior engineer reviews itAnd comes back with questions, a realistic range and an honest view on fit.
  3. Free 30-minute scoping callWe talk through scope, options and a realistic estimate — with no obligation.
Free estimateNo obligation

Talk to someone who builds this

Send a short brief and we will come back with an honest view and a realistic range.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →