Skip to content
FunnelGuard

Fix guide by FunnelsGuard

High Total Blocking Time from third-party tags: how to fix it

PRF-041Medium impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

The browser runs most page work on one thread, called the main thread. It runs your scripts, builds the layout and answers clicks. A task that runs longer than 50 ms is a long task. Total Blocking Time adds up the part of each long task beyond 50 ms between first paint and the moment the page becomes reliably interactive.

Why it costs you leads or sales

How heavy tags delay a conversion
  1. Page loadsContent appears on screen
  2. Third-party tags runChat, ads, heatmap and A/B scripts block the main thread
  3. Visitor taps CTATap waits in the queue or is missed
  4. Form or checkoutVisitor gives up or never gets there

The page looks ready, but the main thread is still running tag code, so the first tap is ignored.

Blocking time by script groupExample numbers
Blocking time by script group (example)Your own code: 120 ms; Tag manager: 180 ms; Chat widget: 220 ms; Ad pixels: 160 ms; Heatmap / replay: 250 ms096192120180220160250Your own codeTag managerChat widgetAd pixelsHeatmap / replayms

Example: made-up numbers showing how several tags can add up to a high TBT on a mobile test.

How to check if your site has it

Find the heavy third-party scripts
  1. Run Lighthouse on mobile

    In Chrome, open DevTools, go to the Lighthouse tab, choose Mobile and run a Performance report on your landing page. Note the Total Blocking Time value.

  2. Open the third-party audit

    In the report, open the audit named 'Reduce the impact of third-party code' (wording may vary by version). It lists each third-party domain with its main-thread time.

  3. Confirm in the Performance panel

    Record a page load in DevTools Performance. Long tasks have a red corner. Click one and check the 'Bottom-Up' tab, grouped by domain, to see which third party owns it.

  4. Test with and without a tag

    Use DevTools Network 'Block request domain' on a suspect script, reload and re-run Lighthouse. A large drop confirms the culprit.

  5. Check real-user data

    Open PageSpeed Insights or the Core Web Vitals report in Google Search Console to see INP from real visitors, if your site has enough traffic.

Rough reading of TBT in Lighthouse (mobile). These are Lighthouse's general bands; check current documentation.
TBTReadingNext step
Under 200 msGoodKeep monitoring
200 to 600 msNeeds improvementReview the top third-party scripts
Over 600 msPoorRemove, delay or replace heavy tags

How to fix it

Reduce third-party blocking time
  1. List every third-party tag

    Write down each script, who owns it and what it is for. Remove tags nobody uses, such as old pixels, retired A/B tests and duplicate analytics.

  2. Remove duplicates

    Check that the same tag is not loaded both in the page source and in your tag manager, and that you do not run two heatmap or chat tools at once.

  3. Load non-essential tags later

    Chat, heatmaps, review badges and social embeds rarely need to run before the first interaction. Load them after the page is idle, on first scroll or on click.

  4. Use async or defer

    Make sure scripts use async or defer so they do not block HTML parsing. This does not stop them using the main thread once they run, so combine it with delayed loading.

  5. Keep conversion tags reliable

    Do not delay purchase, lead or ad conversion tags so far that they miss fast visitors. Delay the heavy extras first.

  6. Re-test

    Re-run Lighthouse three times and compare the median TBT with your first result.

Delay or trim tags on your platform
  1. Change triggers

    Move non-essential tags from 'Page View' or 'Initialization' to 'Window Loaded' or a Timer trigger. Chat and heatmap tags are good candidates.

  2. Use Preview mode

    Open Tag Assistant preview to confirm each tag still fires, then publish.

  3. Prune the container

    Pause or delete unused tags, triggers and variables, then publish a new version.

Load a heavy third-party script after the page is idle or on first interactionjavascript
function loadScript(src) {
  var s = document.createElement('script');
  s.src = src;
  s.async = true;
  document.head.appendChild(s);
}

var loaded = false;
function loadOnce() {
  if (loaded) return;
  loaded = true;
  loadScript('https://example.com/chat-widget.js');
}

['pointerdown', 'keydown', 'scroll'].forEach(function (evt) {
  window.addEventListener(evt, loadOnce, { once: true, passive: true });
});

if ('requestIdleCallback' in window) {
  requestIdleCallback(loadOnce, { timeout: 5000 });
} else {
  setTimeout(loadOnce, 5000);
}
Third-party load before and after

Before

  • Nine tags run on page load
  • Chat and heatmap start immediately
  • Duplicate analytics tag
  • Taps wait while scripts run

After

  • Unused and duplicate tags removed
  • Chat and heatmap load after idle or first input
  • Conversion tags still fire on time
  • Main thread free for the first tap

How to confirm it's fixed

Confirmation checklist
  • Lighthouse mobile TBT is lower than your starting value (use the median of three runs)
  • The third-party audit shows less main-thread time
  • Tag Assistant or the Network tab shows conversion tags still firing
  • A test lead or test purchase still reaches GA4 and your ad platforms
  • The chat widget and other delayed tools still appear and work
  • Search Console INP trends down over the following weeks

How to prevent it happening again

Habits that keep TBT low
  • Keep a written list of approved third-party tags and owners
  • Require a Lighthouse run before and after any new tag is added
  • Review the tag manager container every quarter
  • Set a TBT target for key landing pages and re-test after each release
  • Prefer lightweight or facade versions of chat and video embeds
  • Test on a throttled mobile profile, not only a fast laptop

How FunnelGuard handles this

FunnelGuard does not check Total Blocking Time or third-party script weight yet. It is a possible future check.

Questions people ask

What is a good Total Blocking Time score?

In Lighthouse, a TBT under 200 ms on mobile is generally considered good, 200 to 600 ms needs improvement and over 600 ms is poor. Aim for the lowest figure you can reach on your key landing pages, and test on a mobile profile.

Why is my Total Blocking Time high even though my site is simple?

The cause is often third-party scripts rather than your own code. Chat widgets, heatmaps, ad pixels, A/B tools and tag manager containers all run on the main thread. Check the third-party audit in Lighthouse to see which domains take the most time.

How do I find which third-party script is slowing my site?

Run Lighthouse on mobile and open the audit that lists third-party code with main-thread time. Then record a load in the Chrome DevTools Performance panel and group by domain in the Bottom-Up tab. Blocking a suspect domain and re-running the test confirms it.

Does Google Tag Manager increase Total Blocking Time?

The container itself is small, but the tags inside it can be heavy, and many tags firing at page load add up. Move non-essential tags to Window Loaded or a timer trigger and delete unused ones.

Is TBT the same as INP?

No. TBT is a lab measure of main-thread blocking during load. INP is measured from real visitors and reports how slowly the page responds to taps, clicks and key presses. A high TBT often points to scripts that also hurt INP.

Can I delay tracking scripts without losing conversions?

Yes, if you do it carefully. Delay heavy extras such as chat and heatmaps first, keep conversion tags early enough to catch quick visitors, and run a test conversion afterwards to confirm the hits still arrive.

Does FunnelGuard measure Total Blocking Time?

Not yet. It is a possible future check. FunnelGuard runs your real funnels and checks steps, tracking hits and test leads, so it can help you confirm tags still work after a speed change, but you need Lighthouse or PageSpeed Insights to measure TBT.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

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.