Performance & Reliability
Are Third-Party Scripts Slowing Down Your Website? How to Fix It
How to find the third-party scripts slowing your site, decide which to keep, and load the rest smarter so pages stay fast and tracking still works.

Third-party scripts are code your website loads from other companies, such as analytics, ad pixels, chat widgets, video embeds and review badges. Each one adds downloads and work for the browser, and together they are one of the most common reasons a well-built site still feels slow. The fix is to list every script, remove the ones you do not use and load the rest later or only where they are needed.
Quick answer: audit your scripts, remove unused tags, load chat and social widgets on interaction, lazy-load video embeds and keep tracking inside one tag manager.
Common third-party scripts that slow websites
| Script type | Examples | Typical impact |
|---|---|---|
| Analytics and tag managers | Google Analytics, Google Tag Manager | Low to medium, more with many tags |
| Advertising pixels | Meta Pixel, LinkedIn Insight, TikTok Pixel | Medium, especially several at once |
| Chat widgets | Live chat and chatbot tools | High, often large JavaScript bundles |
| Video embeds | YouTube, Vimeo | High, each embed loads a player |
| Heatmaps and session recording | Hotjar, Microsoft Clarity | Medium, constant tracking |
| Social feeds and review badges | Instagram feeds, review widgets | Medium to high |
| A/B testing tools | Experiment platforms | High if they hide the page while loading |
How to find the scripts slowing your site
- Run PageSpeed Insights. Look for “Reduce the impact of third-party code” and “Reduce unused JavaScript”. Both list the worst offenders.
- Check Chrome DevTools. In the Network tab, filter by domain to see how much each provider loads.
- Review Google Tag Manager. Old tags from past campaigns often keep firing years later.
- Test without scripts. Compare page speed with a script disabled on a staging site to see its real cost.
How to keep the tools and lose the slowdown
Remove what you do not use
Delete tags for tools you have cancelled, finished campaigns and duplicate trackers. This is the fastest and safest win.
Load scripts later
Most tools do not need to load before your content appears. Use async or defer for scripts, or delay non-critical tools until after the page has loaded or the visitor first scrolls, clicks or types.
Load chat widgets on interaction
Show a lightweight chat button and only load the full chat software when someone clicks it. Visitors see the same button, and the page loads much faster.
Use lightweight video embeds
Replace a full YouTube player with a thumbnail image and a play button. Load the real player only when someone clicks play.
Load scripts only where they are needed
A booking widget only needs to load on the booking page. A review carousel only needs to load where it appears.
Keep tracking in one place
Manage tracking through one tag manager with clear triggers, so marketing can add tools without editing site code, and old tags are easy to find and remove.
Will removing scripts break my tracking?
Not if it is planned. Before you change anything, list which reports and audiences depend on each script. Test conversions and events after every change. Delaying a pixel by a second rarely affects reporting, but removing a tag that feeds ad campaigns can.
How third-party scripts affect Core Web Vitals
Heavy scripts mostly hurt INP, because they keep the browser busy when someone taps or clicks. They can also delay LCP if they load before your main content, and cause CLS when widgets or banners push content down. Our guide to improving Core Web Vitals covers each metric.
Get help speeding up your site
We audit every script, agree what stays with your marketing team and test tracking after each change. Our website speed optimization service starts at $249 with before-and-after scores. For a WordPress-specific check, see why WordPress sites slow down.
From our projects: Our own site, attors.com, loads no third-party chat widgets or tag-manager scripts, which helps keep pages fast on mobile.
What the research says: web.dev recommends loading third-party scripts with async or defer unless they must run before the page renders, and lazy-loading embeds below the fold so main content appears first. (Source: web.dev.)
Third-party script questions
What is a third-party script?
It is code loaded from another company’s server to add a feature, such as analytics, ads, chat, video or reviews. Your site depends on that server’s speed.
Does Google Tag Manager slow down a website?
The container itself is light, but every tag inside it adds load. A tidy container with only needed tags has a small impact. An old container full of unused tags can slow pages a lot.
Should I remove my live chat widget?
Not necessarily. Load it only when visitors click the chat button. That keeps the feature and removes most of the speed cost.
Do YouTube embeds slow down pages?
Yes. Each embed loads a video player and its scripts. Use a click-to-load thumbnail instead of the full player.
How many tracking scripts are too many?
There is no fixed number. Check each script’s impact in PageSpeed Insights and keep only the tools that drive decisions or revenue.
Can delaying scripts affect conversions tracking?
It can if done badly. Test every conversion event after changes, and keep scripts that must fire immediately, such as checkout tracking, loading normally.
Keep Reading

How to Restore a Website From the Wayback Machine (and What You Can Recover)
By Attors Technologies
Lost your website? Here is how to rebuild it from Wayback Machine archives, what can and cannot be recovered, and how to turn snapshots into a working site.

Website Maintenance Checklist and Costs: What a Good Plan Covers
By Attors Technologies
Use this website maintenance checklist to keep your site fast, secure and working, and see what maintenance plans include and cost per month.

Why Is My WordPress Site So Slow? 10 Common Causes and Fixes
By Attors Technologies
The 10 most common reasons a WordPress site loads slowly, how to test which one is hurting you, and the fixes that make the biggest difference.
