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
- Page loadsContent appears on screen
- Third-party tags runChat, ads, heatmap and A/B scripts block the main thread
- Visitor taps CTATap waits in the queue or is missed
- 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.
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
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.
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.
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.
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.
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.
| TBT | Reading | Next step |
|---|---|---|
| Under 200 ms | Good | Keep monitoring |
| 200 to 600 ms | Needs improvement | Review the top third-party scripts |
| Over 600 ms | Poor | Remove, delay or replace heavy tags |
How to fix it
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.
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.
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.
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.
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.
Re-test
Re-run Lighthouse three times and compare the median TBT with your first result.
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.
Use Preview mode
Open Tag Assistant preview to confirm each tag still fires, then publish.
Prune the container
Pause or delete unused tags, triggers and variables, then publish a new version.
Audit plugins that inject scripts
Deactivate plugins one at a time on a staging site and re-run Lighthouse to find those adding third-party code.
Use a script manager
A performance plugin with script delay or per-page script control lets you stop chat or tracking scripts loading on pages that do not need them. Settings differ by plugin.
Check your theme
Look in Appearance, Theme settings and header/footer injection boxes for old pasted tags.
Review installed apps
In Settings, Apps, remove apps you no longer use. Some leave code behind, so also search theme.liquid for leftover script tags.
Check Customer events
In Settings, Customer events, review pixels and remove unused ones.
Edit theme code carefully
Duplicate your theme before removing any script from theme.liquid.
Review custom code
Check Site settings, Custom code and per-page custom code for old tags.
Move scripts to the footer
Put non-essential scripts in the footer code area instead of the head.
Open Custom Code
In Settings, Custom Code, review each snippet and remove unused ones. Set loading to the body end where possible.
Limit apps
Remove Wix apps that add widgets you do not need.
Review Code Injection
In Settings, Developer Tools, Code Injection, move non-essential scripts from Header to Footer or remove them.
Check Marketing integrations
Disconnect tools you no longer use.
Review tracking code
In funnel or website settings, check the header and footer tracking code and remove old snippets.
Limit chat widgets
Run one chat widget per page and turn it off on pages where it is not needed.
Load on interaction
Inject heavy scripts after the first user input or when the browser is idle, using the snippet below.
Use a facade
Show a lightweight placeholder for chat or video and load the real widget on click.
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);
}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
- 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
- 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.
Related issues
- PRF-039INP over 200 ms on a CTA or form interactionFix guide
- PRF-040Long tasks over 50 ms block input during loadFix guide
- PRF-042Submit button unresponsive for seconds while JS loads (dead first click)Fix guide
- PRF-044Main thread busy with session-replay scripts (Hotjar, Clarity, FullStory)Fix guide
- PRF-045Too many tag manager tags firing on page loadFix guide
- PRF-046Multiple versions of jQuery or React loadedFix guide