The short fix
- List every outside domain the page loads files from, and who in your team needs each one.
- Remove tags, pixels and apps nobody uses, and any second tool doing the same job.
- Fire the remaining marketing tags after the page has loaded, and only on the pages that need them.
- Load chat on interaction, and replace YouTube and map embeds with a preview that loads the real player on click.
- Re-test, then confirm that tracking, the cookie banner and checkout still work.
What PageSpeed Insights is telling you
In PageSpeed Insights this is the 3rd parties insight, listed under Insights. Before Lighthouse 13 it was the diagnostic Reduce the impact of third-party code. The table groups requests by company, using the open-source Third Party Web list, and shows each one's Transfer size and Main thread time.
The new insight never fails: Lighthouse shows it for information whenever a page loads third-party files. The older audit failed when outside code blocked the main thread for 250 ms or longer. So a page can look fine in PageSpeed Insights and still carry a lot of outside code.
In a FlashMax report the card is Outside scripts compete with the site. It appears when outside files add up to 500 KB or more, or to 250 ms or more of main-thread work.
Why it slows the page
Outside code costs you in three ways:
- Connections. Every new domain needs its own lookup and secure connection before its first byte arrives.
- Main-thread time. Tag managers, chats and review widgets run JavaScript on the same thread that answers taps. That raises Total Blocking Time, which carries 30% of the Lighthouse score, and in the field it hurts Interaction to Next Paint (INP). web.dev reports a correlation between the size of tag managers and poorer INP.
- Bandwidth and layout. Outside files compete with your main image for the connection, which can delay Largest Contentful Paint, and late widgets can push the page around.
There is also a risk you don't control. If a third party's server fails and its script blocks rendering, the page waits until the request times out, which web.dev puts at anywhere from 10 to 80 seconds.
How common it is
In our study of 40,951 WooCommerce store home pages (Lighthouse 13, phone settings), 35.1% of stores (14,380) got this card. Their median phone score was 39, against 58 for stores without it. That gap is a correlation, not proof: stores with many outside scripts tend to have other problems too.
The number of domains a page loads files from (its own included) tracks blocking time closely. Stores, median Total Blocking Time on the phone test, median phone score:
- 1–3 domains: 8,426 stores, 76 ms, score 63
- 4–6 domains: 11,992 stores, 204 ms, score 56
- 7–10 domains: 10,650 stores, 424 ms, score 50
- 11–20 domains: 8,729 stores, 836 ms, score 39
- More than 20 domains: 1,154 stores, 1,588 ms, score 31
Method and caveats are in the WooCommerce speed study.
How to find the outside scripts
- Run a free test. The FlashMax speed test lists the outside files behind the card in about a minute.
- Read the 3rd parties table in PageSpeed Insights. Look at Main thread time first: 300 ms of work matters more than a large file that does little.
- Filter in Chrome DevTools. In the Network panel, choose More filters > 3rd-party requests to see only requests to other origins. To see the page without one vendor, open the Network request blocking tab in the drawer, block its domain and reload.
- Ask who owns each one. For every domain, write down the tool, who uses it and on which pages it is needed. Tags nobody claims are usually the easiest to remove.
How to fix it on WordPress and WooCommerce
Remove first
Uninstall plugins whose only job is an outside widget nobody uses: an old live chat, a social feed, a second analytics tool, a finished A/B test, pixels for ad accounts that no longer run. web.dev's rule of thumb: you probably don't need two tag managers or two analytics platforms.
Tag managers and pixels
- In Google Tag Manager, fire tags that aren't needed in the first seconds on the Window Loaded trigger instead of Page View. web.dev recommends this for non-essential tags so they don't compete with the page load.
- Add trigger conditions so each tag fires only on the pages that use it, for example a purchase pixel only on the order-received page.
- Prefer image tags ("pixels") and custom templates over Custom HTML tags. web.dev ranks them in that order for performance.
- Don't load the cookie banner, the main image or site features through the tag manager: they arrive later than if they were in the page, and visitors who block tag managers never get them.
Chat, reviews and pop-ups
Load them only where they matter (reviews on product pages, not on the blog) and only when they are needed. Chat is the classic case for delaying until the visitor interacts; Minimize main-thread work covers the WP Rocket, Perfmatters and LiteSpeed Cache settings and what to keep out of the delay.
YouTube, Vimeo and Google Maps
An embedded player loads its own scripts even if nobody presses play. Two fixes:
- Lazy-load the iframe with
loading="lazy". For a YouTube embed, web.dev puts the saving at about 500 KB on the initial page load. - Use a facade: a preview image with a play button that loads the real player only on click. In WP Rocket, the Media tab has LazyLoad for iframes and videos and Replace YouTube iframe with preview image. In Perfmatters, the Lazy Loading menu has iFrames and Videos and YouTube Preview Thumbnails. For a map, a static map image that links to Google Maps does the same job.
Cookie banners and consent mode
The consent banner is often a third-party script itself, and it has to load early: never delay it. If you use Google's consent mode, the mode you pick changes what loads first. With basic consent mode, Google tags are blocked until the visitor uses the banner. With advanced consent mode, Google tags load straight away with consent set to denied and send measurements without cookies. Choose the mode for legal and measurement reasons, and know which one you run when you read the 3rd parties table.
Shopify and hand-built sites
Shopify. Apps and pixels are most of the outside code you control. Remove apps you don't use, then check the theme: uninstalling an app doesn't always remove the script tags or snippets it added, so search layout/theme.liquid and the snippets/ folder for the app's name or domain. Load what stays only where it's needed. Shopify's own example loads a review widget on product pages only:
{% if template.name == 'product' %}
<script src="https://reviews.example.com/widget.js" defer></script>
{% endif %}
Hand-built sites. Load outside scripts with async or defer, never as plain blocking tags in the <head>. For a chat widget, a small loader that waits for the first interaction keeps it out of the page load:
<script>
function loadChat() {
if (window.chatLoaded) return;
window.chatLoaded = true;
var s = document.createElement('script');
s.src = 'https://chat.example.com/widget.js';
s.async = true;
document.head.appendChild(s);
}
['pointerdown', 'keydown', 'scroll'].forEach(function (type) {
window.addEventListener(type, loadChat, { once: true, passive: true });
});
</script>
Replace the address with your vendor's script and move any set-up code the vendor gives you into loadChat. For YouTube, web.dev recommends the open-source lite-youtube-embed facade, which looks like the player and loads the real one on click.
Mistakes to avoid
- Removing tags without asking. A pixel that looks unused may feed an ad account's conversions. Check with its owner, then remove it.
- Delaying the consent banner or loading it through the tag manager. It appears late, and visitors browse before they can choose.
- Delaying tags that must record a page view, such as a purchase tag on the order-received page, without checking that they still fire.
- Trusting the insight's pass mark. The 3rd parties insight always passes. Read the Transfer size and Main thread time columns instead.
How to check the fix worked
- Clear the site and CDN cache, then re-test the same page with FlashMax or PageSpeed Insights two or three times. Compare the number of outside domains, their total size and their main-thread time, not only the score.
- Check that what you kept still works: use the tag manager's preview and your analytics real-time report, accept and reject cookies, and place a test order.
- Watch field data. INP and LCP from real Chrome users, in PageSpeed Insights and in Search Console's Core Web Vitals report, cover the last 28 days, so allow about four weeks.
Questions people ask
What counts as third-party code?
Any file loaded from a domain other than your site's: Google Tag Manager, analytics, ad pixels, chat, reviews, hosted fonts, video and map players. Lighthouse groups them by company, so you can see which vendor costs the most.
Does Google Tag Manager slow down a website?
The container is one script, but every tag, trigger and variable in it adds code and main-thread work, and web.dev reports a correlation between larger tag managers and poorer INP. Keep the container lean, remove old tags and fire non-essential ones on Window Loaded.
Why does PageSpeed Insights pass 3rd parties while my test flags it?
In Lighthouse 13 the 3rd parties insight always passes and is shown for information only. Our speed test uses its own limit: 500 KB of outside files or 250 ms of their main-thread work, the same 250 ms the older Lighthouse audit used.
Is it safe to delay Google Analytics or an ad pixel?
You can, but visitors who leave without touching the page may not be counted, so reports can show slightly fewer visits. Test that purchase and consent tags still fire before you keep the change.
How many third-party domains is too many?
There's no official number. In our study, stores loading files from 1–3 domains had a median blocking time of 76 ms on the phone test; at 11–20 domains it was 836 ms. Every domain you remove is one connection and one script fewer.
Sources
- 3rd parties (Chrome for Developers, performance insights)
- Reduce the impact of third-party code (Chrome for Developers)
- Third-party JavaScript performance (web.dev)
- Best practices for tags and tag managers (web.dev)
- Best practices for using third-party embeds (web.dev)
- Consent mode overview (Google for Developers)
- Network features reference (Chrome DevTools)
- LazyLoad for iframes and videos (WP Rocket docs)
- How to enable lazy load in WordPress (Perfmatters docs)
- Audit and remove third-party scripts (Shopify)
Rather have it done?
The FlashMax team fixes the issues in your report, on a copy first, and shows the before-and-after.
See the speed optimization service