Last Updated: 17 September 2026

Manage and minimise the impact of third-party code

0 min read
Manage and minimise the impact of third-party code
Matt EvansWritten ByMatt Evans

Matt is our SEO Manager, and in his career spanning 14 years, he has worked across multiple forms of marketing & lead generation, using leading industry tools, cutting edge strategies and multiple teams.

Reducing the impact of third-party code is crucial for optimising the performance of your website. Third-party scripts, such as ads, analytics, widgets and social media buttons can significantly slow down your site by consuming resources, increasing load times and causing rendering delays. In this article, we explore several strategies to effectively manage and minimise the impact of third-party code:

Getting your third party code in order...

  1. Audit and Evaluate

   – Identify third-party scripts: Use tools like Google Lighthouse, WebPageTest, or Chrome DevTools to identify all third-party resources loaded on your site and their impact on performance. Determining their performance impact on your website is the first step toward optimising them.

   – Evaluate necessity and ROI: Assess whether each third-party script is essential and consider the trade-offs between functionality and performance. Remove or replace scripts that are not delivering sufficient value. You can also utilise content delivery networks for faster delivery, version and cache scripts for efficient browser caching,

 

  1. Lazy Load Non-Essential Scripts

   – Defer loading: For scripts that are not critical to the initial page load, such as social sharing buttons or comment sections, use lazy loading techniques. This means loading them only when they are needed. For example, when they enter the viewport or when a user interacts with the page.

 

  1. Host Third-Party Resources Locally

   – Reduce DNS lookups: By hosting third-party scripts locally, you can reduce DNS lookups and have more control over the caching of these files. However, this approach requires keeping the scripts updated manually and can sometimes violate terms of service, so it should be done with caution.

 

  1. Limit Third-Party Impact

   – Use iframes: For embedding widgets like videos or social media posts, consider using iframes. This isolates third-party code and prevents it from blocking the main thread.

   – Set timeouts: Implement a timeout for third-party scripts. If a script takes too long to load, abort loading it to maintain the site’s performance.

 

  1. Asynchronous Loading

   – Async attribute: Use the `async` attribute in script tags. This allows the script to be downloaded in parallel to the page parsing and will not block the DOM and CSSOM construction.

   – Non-render blocking: Ensure that third-party scripts do not block rendering by placing them at the end of the body tag or using defer and async attributes effectively.

 

  1. Monitor and Optimise Performance

   – Performance budget: Set a performance budget for third-party scripts and stick to it. This helps keep their impact in check and prioritises overall site performance.

   – Regular audits: Continuously monitor the performance impact of third-party scripts and re-evaluate their necessity. Technology and site priorities change, so regular checks are crucial.

 

  1. Use Content Security Policies (CSP)

   – Restrict origins: Implement Content Security Policies to control the sources from which scripts can load. This not only improves your website’s security but also prevents unauthorised third-party scripts from slowing down your website.

 

In Summary…

By implementing these strategies, you can mitigate the performance issues caused by third-party scripts while still leveraging their functionality. This balance is key to maintaining a fast, responsive, and engaging user experience. 

For more tips on how to improve your website performance, with third party code and beyond, contact us today.

Get in touch

And see how we'd drive results for you

****Read more****

What is Generative Engine Optimisation (GEO)?

What is Generative Engine Optimisation (GEO)?

Matt Ford
Matt Ford
03 September
2026
Digital Marketing Budget Allocation Across Multiple Locations: A Decision Framework

Digital Marketing Budget Allocation Across Multiple Locations: A Decision Framework

Heidi Vorrath
Heidi Vorrath
10 August
2026
What Actually Drives ROI in Hospitality Digital Marketing

What Actually Drives ROI in Hospitality Digital Marketing

Mark Lillicrapp
Mark Lillicrapp
03 June
2026
Winners: Web Excellence Award for Best Website: Wine, Beer & Spirits

Winners: Web Excellence Award for Best Website: Wine, Beer & Spirits

Aurélie Brunet
Aurélie Brunet
20 May
2026
Why Many Hotel Groups Struggle to Scale Digital Platforms

Why Many Hotel Groups Struggle to Scale Digital Platforms

Mark Lillicrapp
Mark Lillicrapp
06 March
2026
The Future of AI in Local Search

The Future of AI in Local Search

Matt Ford
Matt Ford
05 February
2026
Why SEO in 2026 Isn’t About Ranking Anymore – It’s About Being Seen, Trusted, and Understood

Why SEO in 2026 Isn’t About Ranking Anymore – It’s About Being Seen, Trusted, and Understood

Matt Ford
Matt Ford
08 January
2026
Why You Should Be Competing for Visibility in the LLM Era

Why You Should Be Competing for Visibility in the LLM Era

Mark Lillicrapp
Mark Lillicrapp
02 December
2025
Winning in the Age of AI Search: Introducing Propeller’s New AI Solutions

Winning in the Age of AI Search: Introducing Propeller’s New AI Solutions

Mark Lillicrapp
Mark Lillicrapp
04 November
2025
Paid Campaigns Failing to Convert? Here’s Why.

Paid Campaigns Failing to Convert? Here’s Why.

Sally Watanabe
Sally Watanabe
04 November
2025
iOS 26 Privacy Settings: What Universal Link Sanitisation Means for Marketers in Hospitality

iOS 26 Privacy Settings: What Universal Link Sanitisation Means for Marketers in Hospitality

Felix Mutiu
Felix Mutiu
30 September
2025
Top 10 Agencies Redefining Digital Marketing for the Experience Economy in 2025

Top 10 Agencies Redefining Digital Marketing for the Experience Economy in 2025

Heidi Vorrath
Heidi Vorrath
30 September
2025
From Walk-Ins to Pre-Bookings: The Digital Shift in Hospitality

From Walk-Ins to Pre-Bookings: The Digital Shift in Hospitality

Matthew Richardson
Matthew Richardson
23 September
2025
Why Digital Marketing Is the New Crystal Ball for Growth

Why Digital Marketing Is the New Crystal Ball for Growth

Heidi Vorrath
Heidi Vorrath
10 September
2025
The Optimal Digital Channel Mix for Multi-Site Hospitality Brands

The Optimal Digital Channel Mix for Multi-Site Hospitality Brands

Oriana Cirilo
Oriana Cirilo
15 July
2025
The Rise of Bleisure and Extended Stays

The Rise of Bleisure and Extended Stays

Oriana Cirilo
Oriana Cirilo
10 July
2025
Rethinking the Guest Journey in a Digital-First World

Rethinking the Guest Journey in a Digital-First World

Oriana Cirilo
Oriana Cirilo
08 July
2025
5 Digital Trends Disrupting the Property Market

5 Digital Trends Disrupting the Property Market

Oriana Cirilo
Oriana Cirilo
17 June
2025
SEO Is Shifting: Why Your Owned Channels Matter More Than Ever

SEO Is Shifting: Why Your Owned Channels Matter More Than Ever

Matt Evans
Matt Evans
15 May
2025
The Recipe to More Hospitality Bookings: 5 Key Takeaways from our Experiences Webinar

The Recipe to More Hospitality Bookings: 5 Key Takeaways from our Experiences Webinar

Oriana Cirilo
Oriana Cirilo
06 May
2025
Hot Take: 5 Marketing Campaigns We’re Loving Right Now

Hot Take: 5 Marketing Campaigns We’re Loving Right Now

Imogen Haylock
Imogen Haylock
30 April
2025
Propeller Nominated for Two UK Digital Excellence Awards 2025

Propeller Nominated for Two UK Digital Excellence Awards 2025

Imogen Haylock
Imogen Haylock
25 March
2025
Propeller Shortlisted for Best Agency to Work For

Propeller Shortlisted for Best Agency to Work For

Imogen Haylock
Imogen Haylock
21 March
2025
A Day In The Life Of A Project Coordinator

A Day In The Life Of A Project Coordinator

Shania Samuels
Shania Samuels
06 March
2025
2025 Hospitality Trends: What’s Coming and Why It Matters

2025 Hospitality Trends: What’s Coming and Why It Matters

Imogen Haylock
Imogen Haylock
19 February
2025
Rednote: The Social Media App on the Rise Amid TikTok’s Looming U.S. Ban

Rednote: The Social Media App on the Rise Amid TikTok’s Looming U.S. Ban

Ellie Strestik
Ellie Strestik
30 January
2025
This Year in Focus: What’s On For Propeller in 2025

This Year in Focus: What’s On For Propeller in 2025

Imogen Haylock
Imogen Haylock
22 January
2025
Top Social Media Agencies in the UK (2026)

Top Social Media Agencies in the UK (2026)

Ellie Strestik
Ellie Strestik
19 January
2025
Top Hospitality Agencies in the US (2025-2026)

Top Hospitality Agencies in the US (2025-2026)

Matthew Richardson
Matthew Richardson
17 January
2025
Top eCommerce Marketing Agencies in the UK

Top eCommerce Marketing Agencies in the UK

Matthew Richardson
Matthew Richardson
15 January
2025