Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Third-party script slow and blocking rendering: how to fix it

PRF-100Medium impactPartlyBy FunnelGuardPublished Updated
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.

How a slow script blocks the page
  1. Browser starts pageHTML begins to load
  2. Hits third-party script in headRequest sent to vendor server
  3. Vendor responds slowlyRendering is paused
  4. Hero and headline drawnAppears late
  5. 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

LCP with and without a blocking scriptExample numbers
LCP with and without a blocking script (example)Script blocking: 4.8 seconds; Script deferred: 2.3 seconds0244.82.3Script blockingScript deferredseconds

Example: illustrative numbers showing how one slow blocking script can add to LCP.

How to check if your site has it

Find the slow third-party script
  1. 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'.

  2. 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.

  3. 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.

  4. Check the HTML source

    View source and search the <head> for <script src= tags without async or defer that point to other domains.

  5. 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

Ways to load a script without blocking the page
MethodWhat it doesBest for
asyncDownloads in the background and runs as soon as ready, in any orderIndependent scripts such as analytics
deferDownloads in the background and runs after the HTML is parsed, in orderScripts that need the page to exist
Load after interaction or delayWaits until the visitor scrolls, clicks or a few seconds passChat widgets, review badges, heatmaps
RemoveStops loading it at allUnused or duplicate tools
Load a third-party script without blockinghtml
<!-- 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>
Load a non-essential widget after the page is readyjavascript
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);
});
Fix it on your platform
  1. 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.

  2. 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.

  3. Remove unused plugins

    Delete plugins that load scripts you no longer need.

How to confirm it's fixed

Confirmation checks
  • 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

Habits that keep pages fast
  • 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.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: LCP only.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.