# Third-party scripts slowing your site

> Measure which external scripts add load time, test their impact, and remove, defer, or lazy-load them without breaking essential features.

Canonical: https://scaplet.com/seo-issues/third-party-scripts

Guide SEO issue · Performance

Measure which external scripts add load time, test their impact, and remove, defer, or lazy-load them without breaking essential features.

5 min

read

4

sources

Oct 24, 2026

updated

Scaplet Editorial Team

author

In one line

Third-party scripts can add requests, download bytes, parse and execute JavaScript, and delay rendering when they run in the critical path. Measure their cost with DevTools, PageSpeed Insights, or WebPageTest, then block one request in a test to compare behavior. Remove redundant tags, defer noncritical scripts, and keep essential functionality working before shipping the change.

30-second check

## Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo-issues%2Fthird-party-scripts%20(%22Third-party%20scripts%20slowing%20your%20site%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo-issues%2Fthird-party-scripts%20(%22Third-party%20scripts%20slowing%20your%20site%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo-issues%2Fthird-party-scripts%20(%22Third-party%20scripts%20slowing%20your%20site%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo-issues%2Fthird-party-scripts%20(%22Third-party%20scripts%20slowing%20your%20site%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

On this page

## 4 parts, 5 minutes.

1. [Measure the script before removing it 01](#measure-the-script-before-removing-it)
2. [Choose the least costly implementation 02](#choose-the-least-costly-implementation)
3. [Keep the page resilient when vendors fail 03](#keep-the-page-resilient-when-vendors-fail)
4. [Verify the user-visible change 04](#verify-the-user-visible-change)

_01_How it works

## Measure the script before removing it

Third-party code includes analytics, chat, ad tags, [A/B testing](/glossary/a-b-testing), social widgets, video embeds, and helper libraries served from another provider. It can add network requests and JavaScript work outside your team's control. A performance audit that flags a vendor is a reason to measure its cost and business purpose, not to remove every external request blindly.

The test should answer two separate questions: what cost does this code add, and what user or business task depends on it? A tag can be expensive but necessary on checkout, while a second analytics tool may duplicate an existing measurement without a clear benefit.

1. 01

### Capture a baseline

Open Chrome DevTools before reloading the page. In Network, show the Domain column and filter to JS. Note each origin, request time, transfer size, and initiator. Use CPU and network [throttling](/glossary/rate-limiting) to approximate slower devices and connections.
2. 02

### Find execution cost

Record a Performance trace and group the Bottom-up view by product to identify the longest third-party work. [PageSpeed Insights](/glossary/pagespeed-insights) and [Lighthouse](/glossary/lighthouse) can highlight expensive JavaScript execution and large network payloads.
3. 03

### Block one vendor in a test

In the Network panel, right-click the vendor request and choose Block request. The Request conditions drawer opens with that pattern enabled (from the Command Menu, run `Show Request conditions`). Reload and compare the page with and without that one resource. Closing DevTools disables blocking. Measure at least three times, because some third-party scripts fetch different resources on each load.
4. 04

### Name the owner and job

For each origin, record the business owner, page types where it runs, and the feature it provides. Confirm whether another tag already measures the same event or provides the same widget.

_02_Match the performance fix to the role of the script

## Choose the least costly implementation

Script role

### No current owner or clear feature

Good next step

Remove it after checking with the team that owns analytics, ads, or product behavior.

Check

Important reporting and site functionality still work.

Script role

### Useful after the main content is visible

Good next step

Load with `defer`, after user interaction, or when the content nears the viewport.

Check

The feature still works when users reach it.

Script role

### Essential before first interaction

Good next step

Keep it in the critical path only if it must run before the interface is usable.

Check

Measure both load and interaction behavior on a representative device.

Script role

### Video, map, or social embed below the fold

Good next step

Show a lightweight facade and load the provider only when needed, or add `loading="lazy"` to an offscreen embed `<iframe>`.

Check

The preview reserves space and the embed loads after interaction or visibility.

Script role

### Two vendors provide the same function

Good next step

Choose one and remove the duplicate integration.

Check

Events remain complete in the system the team uses.

`async` and `defer` both let the browser continue parsing HTML while the script downloads, but they have different execution timing. With `async`, parsing is blocked while the script executes after it downloads; `defer` waits until document parsing is complete. web.dev suggests `async` when a script must run early, such as some analytics scripts, and `defer` for less critical resources. It does not recommend `async` for essential libraries such as jQuery. Some scripts do not work loaded asynchronously, so check vendor documentation and test the page.

**Async is not the same as free**web.dev notes that if a page includes a large number of scripts, such as advertising trackers, loading them asynchronously will not prevent them from slowing down page load. Remove redundant code and delay work the page does not need before the visitor acts.

_03_Worth knowing

## Keep the page resilient when vendors fail

### Set a budget and owner

Record the purpose, page coverage, payload, and main-thread cost when someone requests a new tag. Recheck it after vendor updates.

### Load below-the-fold embeds later

A video or social widget can use a preview that downloads the full player only after the user asks for it. web.dev advises using these techniques only for offscreen or non-primary content, so that critical content gets indexed.

### Avoid duplicating vendors

Several third-party embeds can pull the same frameworks and libraries in more than once; confirm there is a real requirement before keeping overlapping tools.

### Test failure behavior

Simulate a slow or blocked vendor and confirm the page's navigation, forms, and core content still work.

### Treat self-hosting as a tradeoff

It can give you control over loading and cache headers, but self-hosted scripts do not get automatic updates for API changes or security fixes.

For ecommerce, test payment, cart, and consent behavior before delaying checkout scripts. For publishers, load ad and video resources only where they are actually used. For SaaS landing pages, confirm analytics and chat tags do not block the form or primary call to action. Use a separate template or trigger when a vendor is only needed on a subset of routes.

_04_Explained

## Verify the user-visible change

Deploy one change at a time. Repeat the same throttled measurements and compare the Network and Performance traces. Confirm key interactions still work, third-party errors are not hidden in the console, and actual user metrics move in the expected direction. Lab tests help isolate a request; [field data](/glossary/real-user-monitoring) shows how users experience the page over time.

If a vendor script loads over HTTP on an [HTTPS](/glossary/https) site, review [mixed content](/seo-issues/mixed-content-issue). Third-party work and server response delay can coexist, but removing a vendor script will not fix a slow origin server.

Questions

## Asked a lot.

2 questions people ask next, answered from the sources on this page.

_01_ Should every third-party script use async?

No. web.dev recommends async or defer unless a script is required for the [critical rendering path](/glossary/critical-rendering-path), and notes that some scripts depend on execution order or do not work asynchronously. Test the script's function and loading requirements.

_02_ Does a third-party script always hurt SEO?

Not by definition. Measure whether it delays content, increases work, or harms user experience on your pages. web.dev's guidance is to identify which scripts take the most time, find out what each does, and remove or defer the ones the site does not need.

Sources · 4

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- web.dev
- chrome.com

1. 01 [Load third-party JavaScript](https://web.dev/articles/optimizing-content-efficiency-loading-third-party-javascript) web.dev · checked 2026-10-24
2. 02 [Inspect network activity](https://developer.chrome.com/docs/devtools/network) developer.chrome.com · checked 2026-10-24
3. 03 [Best practices for using third-party embeds](https://web.dev/articles/embed-best-practices) web.dev · checked 2026-10-24
4. 04 [Request conditions: Test your site by blocking or throttling network requests](https://developer.chrome.com/docs/devtools/request-conditions) developer.chrome.com · checked 2026-10-24

## Keep learning

[All seo issues](/seo-issues)

[Learn Mixed content Security and mobile](/seo-issues/mixed-content-issue) [Related JavaScript SEO Crawling and indexing](/glossary/javascript-seo) [Read next Poor Interaction to Next Paint (INP) Performance](/seo-issues/poor-inp) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in SEO issues
[Temporary redirects that should be permanent](/seo-issues/temporary-redirects) [Thin content pages](/seo-issues/thin-content-pages) [Title tag too long](/seo-issues/title-too-long) [Title tag too short](/seo-issues/title-too-short)

More in Performance
[Images without width and height](/seo-issues/images-without-dimensions) [LCP image is lazy-loaded](/seo-issues/lazy-loaded-lcp-image) [Poor Cumulative Layout Shift (CLS)](/seo-issues/poor-cls) [Poor Interaction to Next Paint (INP)](/seo-issues/poor-inp) [Poor Largest Contentful Paint (LCP)](/seo-issues/poor-lcp) [Render-blocking JavaScript](/seo-issues/render-blocking-javascript) [Slow Time to First Byte](/seo-issues/slow-ttfb) [Third-party scripts slowing your site](/seo-issues/third-party-scripts) [Web fonts are delaying text](/seo-issues/web-fonts-blocking-text)

Terms on this page
[A/B testing](/glossary/a-b-testing) [Rate limiting](/glossary/rate-limiting) [PageSpeed Insights](/glossary/pagespeed-insights) [Lighthouse](/glossary/lighthouse) [Real user monitoring (RUM)](/glossary/real-user-monitoring) [HTTPS](/glossary/https) [Critical rendering path](/glossary/critical-rendering-path)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

Run the free audit, then approve the fixes. Every change can be undone.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
