On this page
What this issue is
A third-party script is code your page loads from another company's server, such as a chat widget, an analytics tag, a review badge or an A/B testing tool. By default, a plain <script src="..."> tag in the <head> is render-blocking. The browser stops building the page, downloads the script, runs it, and only then carries on.
- Browser starts pageHTML begins to load
- Hits third-party script in headRequest sent to vendor server
- Vendor responds slowlyRendering is paused
- Hero and headline drawnAppears late
- Visitor sees form or buttonMay already have left
The browser pauses at the slow script, so everything after it waits.
Why it costs you leads or sales
Example: illustrative numbers showing how one slow blocking script can add to LCP.
How to check if your site has it
Run PageSpeed Insights
Test your key landing page at pagespeed.web.dev. Look at the audits named 'Eliminate render-blocking resources' and 'Reduce the impact of third-party code'.
Open Chrome DevTools
Press F12, go to the Network tab, tick 'Disable cache' and reload. Sort by Time and look for requests to other domains that take long.
Use the Performance tab
Record a page load. Long gaps before First Contentful Paint, filled by a script from another domain, point to the blocker.
Check the HTML source
View source and search the
<head>for<script src=tags withoutasyncordeferthat point to other domains.Test on mobile throttling
In DevTools, set throttling to Slow 4G. Slow scripts that seem fine on office broadband often show up here.
How to fix it
| Method | What it does | Best for |
|---|---|---|
| async | Downloads in the background and runs as soon as ready, in any order | Independent scripts such as analytics |
| defer | Downloads in the background and runs after the HTML is parsed, in order | Scripts that need the page to exist |
| Load after interaction or delay | Waits until the visitor scrolls, clicks or a few seconds pass | Chat widgets, review badges, heatmaps |
| Remove | Stops loading it at all | Unused or duplicate tools |
<!-- Blocking (avoid) -->
<script src="https://vendor.example.com/widget.js"></script>
<!-- Non-blocking -->
<script src="https://vendor.example.com/widget.js" async></script>
<script src="https://vendor.example.com/widget.js" defer></script>
<!-- Speed up the connection to the vendor -->
<link rel="preconnect" href="https://vendor.example.com" crossorigin>window.addEventListener('load', function () {
setTimeout(function () {
var s = document.createElement('script');
s.src = 'https://vendor.example.com/widget.js';
s.async = true;
document.body.appendChild(s);
}, 3000);
});Identify the source
Find which plugin or theme setting adds the script. Deactivate suspects one at a time on a staging copy and re-test.
Use your optimisation plugin
If you use a performance plugin, look for options named like 'Defer JavaScript' or 'Delay JavaScript execution' and add the vendor script to it. Exact names depend on the plugin.
Remove unused plugins
Delete plugins that load scripts you no longer need.
Check installed apps
In Admin, go to Apps and remove apps you no longer use. Some leave code behind.
Edit theme code
In Online Store > Themes > Edit code, open theme.liquid and add
deferorasyncto script tags you control. Back up the theme first.Leave app-injected scripts to the app
Scripts added by apps cannot always be edited. Contact the app vendor or replace the app if it slows your pages.
Change the trigger
For non-essential tags, switch the trigger from 'Page View' to 'Window Loaded' or a timer or scroll trigger.
Audit the container
Pause or delete tags you no longer use, then Preview and publish.
Move custom code
In Project settings > Custom code, move scripts from Head code to Footer code where possible.
Add async or defer
Add the attribute to script tags you paste in, then publish and re-test.
Review tracking code
In your funnel or website settings, check the Head tracking code and custom code areas for third-party scripts.
Move or remove
Move non-essential scripts to the footer tracking code if available, or remove them.
Check Custom Code
In Settings > Custom code, review each snippet. Set it to load in the Body (end) rather than Head where the tool allows.
Remove unused apps
Uninstall apps you no longer use from the App Manager.
Review Code Injection
In Settings > Advanced > Code Injection, move non-essential scripts from Header to Footer.
Remove unused extensions
Delete embeds and extensions you no longer use.
Add async or defer
Update script tags in your templates and rebuild.
Add preconnect hints
Use
<link rel="preconnect">for vendors you must keep.Consider self-hosting
Where the vendor's licence allows, host the file yourself so you control caching.
How to confirm it's fixed
- PageSpeed Insights no longer lists the script under 'Eliminate render-blocking resources'
- LCP is lower on mobile than before, in at least two test runs
- The Network tab shows the script loading after the main content appears
- Your form, checkout and chat button still work
- Your tracking tags still fire (check in GA4 DebugView or Tag Assistant)
How to prevent it happening again
- Keep a list of every third-party script and who owns it
- Ask for a reason and an owner before adding a new tag
- Load new scripts with async, defer or a delayed trigger by default
- Re-test key landing pages after plugin, app or theme updates
- Remove tools you stopped using, including old trial tags
- Set a regular monthly speed check
How FunnelGuard handles this
What it does not do: it does not name the specific third-party script that is blocking rendering, and it does not audit other measures such as how many scripts are render-blocking or how heavy each one is. Cover that by hand with PageSpeed Insights and the Chrome DevTools steps above, and re-run them after changes to your site.
FunnelGuard runs real journeys on a schedule from the EU or the US and re-checks a failure from a second region before sending one alert with a screenshot and a likely cause. The Free plan covers 1 site and 2 journeys with daily checks, no card needed. Paid plans start at $39/month with a 3-day free trial.
Questions people ask
Why is my website slow because of third-party scripts?
Third-party scripts load from other companies' servers, so your page depends on their speed. If a script sits in the head without async or defer, the browser waits for it before drawing the page. Several scripts together make this worse.
What does render-blocking mean?
A render-blocking resource is a file the browser must download and process before it can show the page. A normal script tag in the head is a common example. Marking it async or defer lets the page draw while the file loads.
What is the difference between async and defer?
Both download the script without blocking the page. async runs the script as soon as it arrives, in any order. defer waits until the HTML is parsed and runs scripts in the order they appear.
How do I find which third-party script is slowing my site?
Run your page through PageSpeed Insights and read the 'Reduce the impact of third-party code' and 'Eliminate render-blocking resources' audits. Then open the Network tab in Chrome DevTools and sort requests by time to see the slow external domains.
Can I just delay all my third-party scripts?
Not safely. Scripts for consent banners, A/B tests or some tracking may need to run early. Delay non-essential ones such as chat or review widgets first, then test forms, checkout and tracking after each change.
Does a slow third-party script hurt SEO?
It can. Slow scripts raise metrics such as LCP, which are part of Core Web Vitals. A slower page can also lose visitors before they act, which hurts results from both search and paid traffic.
Does FunnelGuard find which script is blocking my page?
Not fully. FunnelGuard checks LCP, so it can show that a page is slow, but it does not name the blocking script. Use PageSpeed Insights or Chrome DevTools to find the exact culprit.
Related issues
- PRF-099Third-party script fails to load (chat, form, payment widget)Fix guide
- PRF-101Chat widget loads 1 MB+ on every pageFix guide
- PRF-111Third-party script throws console errorsFix guide
- PRF-112Tag manager container fails to load (blocked, 404)Fix guide
- PRF-115Abandoned plugin script from a dead CDN hostFix guide
- PRF-102Review widget (Trustpilot) fails to renderFix guide