Cozmo Scan My SEO Logo

third-party scripts and total blocking time: A Before-And-After Example for Sme Owners

Third-party scripts—such as those from analytics platforms, social widgets, or advertising networks—are often the silent performance killers on B2B websites.

Run an Audit

What Third-Party Scripts and Total Blocking Time (TBT) Mean: A Before-And-After Example for SME Owners

Third-party scripts—such as those from analytics platforms, social widgets, or advertising networks—are often the silent performance killers on B2B websites. When these scripts execute, they consume the main thread of the browser, leading to significant delays in interactivity, which directly impacts Core Web Vitals and search engine crawl efficiency. For SME owners managing technical SEO, understanding this bottleneck and having a clear diagnostic workflow to fix it is essential for improving organic visibility.

Understanding Third-Party Scripts and Total Blocking Time (TBT)

TBT is a metric derived from performance audits, such as those provided by Lighthouse, that measures the total amount of time a page is blocked from responding to user input, including mouse clicks, screen taps, or keyboard presses. When third-party scripts run synchronously, they monopolize the main thread, preventing the browser from processing user interactions. This translates directly into poor user experience and negatively affects Core Web Vitals scores.

This situation is critical for B2B sites because slow interactivity signals to search engines that the site is not providing a helpful experience, which can indirectly affect rankings. Third-party scripts are a primary cause of this blocking because they must be downloaded and executed by the browser before the page becomes fully interactive. The Lighthouse report displays TBT in milliseconds, measuring the total time a page is blocked from responding to user input.

Diagnosing the Severity of Script Blocking

To move beyond guesswork, SME owners must run a performance audit to isolate exactly which external scripts are inflating the TBT. This diagnostic phase focuses on identifying render-blocking resources and long-running JavaScript tasks.

The diagnostic check involves reviewing the Lighthouse Performance audit to see if a specific external tracking script or widget is listed as a major contributor to the Total Blocking Time. This process helps categorize the issue: is the script blocking the initial page load (render-blocking), or is it just delaying interactivity after the initial paint (long-running)? If the audit points to significant TBT, it signals that the scripts are consuming too much main thread time. This data allows you to focus your remediation efforts precisely where they will yield the greatest performance return.

Implementing Targeted Remediation Strategies

Once you have diagnosed the culprits, the goal is not necessarily to eliminate necessary functionality but to manage resource priority. The strategy involves applying specific loading attributes to third-party scripts to ensure they do not block the initial rendering of your core content.

Start with the most common fix: modifying standard <script> tags by adding the defer attribute. Using defer instructs the browser to download the script during HTML parsing but to execute it only after the entire document has been parsed, thus freeing up the main thread sooner for user interactions. For scripts that are non-critical or only needed after the initial page load, deferring their execution is a powerful technique. For very large third-party libraries, consider code splitting or other techniques to break the large JavaScript payload into smaller, manageable chunks, which improves the overall FID and Time to Interactive (TTI) Chrome.

For images, a related performance optimization is lazy loading. This technique ensures that offscreen images are only fetched when the user scrolls near them, which helps improve metrics like LCP by prioritizing visible content loading.

Verifying Performance Gains and Maintaining Health

Technical SEO is an iterative process. After implementing fixes—such as adding defer attributes to analytics scripts or implementing lazy loading for media—you must re-run the performance audit to verify the impact.

Compare the pre-fix performance report against the post-fix report, focusing specifically on the reduction in TBT and improvements in LCP. The goal after implementing fixes is to see TBT decrease and LCP move closer to benchmarks for optimized pages. If the performance metrics do not improve after remediation, do not assume success. Revert the change, re-evaluate your diagnosis, and look for the next bottleneck. This continuous monitoring ensures that your technical SEO efforts remain focused on measurable improvements for both users and search engines.

If you are struggling to pinpoint exactly where your site's performance is being blocked by external resources, run a ScanMySEO audit to identify related site issues.

Get more from ScanMySEO

Run an audit to see which technical, content, accessibility, performance, and UX issues need attention first.

Run an Audit
Hansel McKoy

Hansel McKoy is the founder of ScanMySEO and a technical SEO specialist with more than 10 years of experience across agency, in-house, public-sector, and founder-led roles.

Hansel McKoy

Founder of ScanMySEO


Get More Out of ScanMySEO