# How to Reduce the Impact of Third-Party Code

> Canonical: https://jethost.com/kb/how-to-reduce-third-party-code-impact/ · Last modified: 2026-11-05T23:18:44+00:00

"Reduce the impact of third-party code" is a page speed recommendation about the scripts your site loads from other companies. Ads, analytics, chat widgets, fonts, and embeds all add weight you do not fully control, and they can slow your [Core Web Vitals](https://jethost.com/kb/how-to-reduce-javascript-execution-time/). This guide shows you how to find what you are loading and exactly which settings to change to keep its effect small. Every [JetHost hosting plan](https://jethost.com/web-hosting/) comes with the tools you need.

## What third-party code is

Third-party code is anything your page loads from a service other than your own site. Common examples are advertising scripts, analytics and tracking tags, live chat widgets, web fonts, social media buttons, and embedded videos or maps. Each one reaches out to another company's servers, which you cannot speed up, and runs its own scripts on your page.

## Find what you are loading

Test the page at [pagespeed.web.dev](https://pagespeed.web.dev/). Under the diagnostics, "Reduce the impact of third-party code" lists every outside service your page loads and how long each one blocks the browser. Go down that list and decide which you still need. Most sites find at least one old tag or widget they can remove outright.

## How to reduce the impact

1. Remove what you do not need. Delete old tracking tags, unused chat or social widgets, and any embed you can replace with a simple link.
2. Delay the rest. In **LiteSpeed Cache → Page Optimization → JS Settings**, set **Load JS Deferred** to **Delayed**, or paste specific script addresses (such as your analytics or chat) into **JS Delayed Includes** so they wait until the visitor interacts.
3. Lazy-load embeds. In **LiteSpeed Cache → Page Optimization → Media Settings**, turn on **Lazy Load Iframes** so videos and maps load only when the visitor scrolls to them.
4. Self-host your fonts. On the **LiteSpeed Cache → Page Optimization → Localization** tab, add Google Fonts under **Localize Resources** so they load from your own site instead of an outside server.
5. Purge and re-test. Go to **LiteSpeed Cache → Toolbox → Purge All**, then re-run PageSpeed to confirm the third-party figure has dropped.

## Check your features still work

Delaying a script can change when a feature appears, so after each change confirm your chat box opens, your analytics still records visits, and any embed still plays. If something is held back too long, remove that one address from the delayed list so it loads normally.

## On JetHost hosting

On JetHost, LiteSpeed Cache is already installed, so delaying third-party scripts, lazy-loading embeds, and self-hosting fonts are all ready to switch on. Our free CDN options speed up the files you serve yourself. If you would rather we review what your pages load, open a ticket and we will tune the settings with you.

## JetHost Experts Tip

The PageSpeed third-party list is your to-do list. Remove anything you no longer use first, then delay what is left. Removing a tag is always better than delaying it.

## Frequently asked questions

**What is an example of third-party code?**Advertising scripts, analytics tags, live chat widgets, web fonts, social buttons, and embedded videos or maps are all common third-party code.

**Can I delay analytics without losing data?**In most cases yes. Delaying analytics until the first interaction still records real visits while keeping the script from slowing the initial load. Check your reports after enabling it.

**Why self-host fonts?**Self-hosting lets fonts load from your own site, which you can cache and serve through a CDN, instead of waiting on an outside font service. LiteSpeed does this from its Localization tab.

## New Hosting Plan with 80% OFF

Upgrade your website’s home without the heavy bill. Get new [hosting plan](https://jethost.com/web-hosting/ "Web hosting with free SSH access") with a huge 80% discount. Get free SSL, email accounts, and a control panel to manage your site. Enjoy fast performance, secure environment, and 24/7 support - all in one affordable package.

## Need more help?

Want help reining in third-party scripts on a site you host with us? Open a ticket through Client Area → Support Tickets and we will review what your pages load and tune the settings with you.
