Email: hello@attors.comServing businesses and agencies in the US, UK & Europe
Attors Technologies
Attors Technologies

Explore Attors

Project Enquiries

Shadola Road AreaGujrat, Pakistan
hello@attors.com+92 309 9867390Start a Project

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.

Performance & ReliabilityBy Mir Hamza MustansarUpdated
Lines of website code representing third-party scripts loaded on a page

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 typeExamplesTypical impact
Analytics and tag managersGoogle Analytics, Google Tag ManagerLow to medium, more with many tags
Advertising pixelsMeta Pixel, LinkedIn Insight, TikTok PixelMedium, especially several at once
Chat widgetsLive chat and chatbot toolsHigh, often large JavaScript bundles
Video embedsYouTube, VimeoHigh, each embed loads a player
Heatmaps and session recordingHotjar, Microsoft ClarityMedium, constant tracking
Social feeds and review badgesInstagram feeds, review widgetsMedium to high
A/B testing toolsExperiment platformsHigh if they hide the page while loading

How to find the scripts slowing your site

  1. Run PageSpeed Insights. Look for “Reduce the impact of third-party code” and “Reduce unused JavaScript”. Both list the worst offenders.
  2. Check Chrome DevTools. In the Network tab, filter by domain to see how much each provider loads.
  3. Review Google Tag Manager. Old tags from past campaigns often keep firing years later.
  4. 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.

Written by
Mir Hamza MustansarFounder and CEO, Attors Technologies

Mir Hamza leads Attors Technologies and oversees the team that plans, designs and builds WordPress, Shopify and custom websites for businesses and agencies in the US, UK and Europe.

More about Mir and the team

Keep Reading

RELATED SERVICE

Need a faster, safer website?

Our care plans keep WordPress sites updated, backed up and monitored from $49 per month.
Compare WordPress care plans