Reduce Total Blocking Time WordPress - Cut the JavaScript That Blocks Your Page (2026)

Total Blocking Time measures how long the page is too busy to respond while it loads. It carries the most weight in the Lighthouse performance score, and on WordPress it's almost always caused by JavaScript.

What TBT Measures

The browser's main thread handles parsing HTML, running JavaScript, calculating styles and painting. When a single task runs longer than 50 milliseconds, it's a "long task", and the page can't respond to input during it.

TBT adds up the part of each long task beyond 50 milliseconds, between First Contentful Paint and the point the page becomes reliably interactive. A 250-millisecond task adds 200 milliseconds of blocking time.

TBT is a lab metric. Real users' responsiveness is measured by INP, and high TBT often goes with poor INP. Lighthouse counts TBT as 30% of the performance score, more than any other metric.

What Counts as a Good TBT

Illustration for What Counts as a Good TBT on the Reduce Total Blocking Time WordPress page, showing a speed diagram

In Lighthouse's mobile test, a TBT of 200 milliseconds or less is considered good. Because the test simulates a slower CPU, the same page usually shows a much lower TBT on desktop.

Where Blocking Time Comes From

Common sources of TBT on WordPress
SourceExamplesTypical Fix
Third-party scriptsAds, analytics, tag managers, chat, heatmaps, social widgetsDelay until interaction; remove unused services
Page builder JavaScriptAnimations, sliders, popups, sticky elementsDisable unused widgets; delay where safe
Theme JavaScriptLarge bundles, jQuery-dependent featuresLighter theme; remove unused features
Plugin scripts on every pageForms, sliders, galleries loaded sitewideLoad only where needed
Large DOM and complex CSSStyle and layout calculationsSimplify layouts; reduce unused CSS
EmbedsYouTube, maps, social postsUse preview images; lazy load

Find the Culprits

  1. Run PageSpeed Insights on mobile

    Note TBT in the lab metrics.

  2. Check main-thread work

    The diagnostics show how much time goes to script evaluation, style and layout, and rendering.

  3. Check JavaScript execution time

    It lists the scripts that take the longest to run, with their URLs.

  4. Check third-party code

    It shows which external services use the most main-thread time.

  5. Profile in DevTools

    Record a page load with CPU throttling and look at long tasks to see which scripts cause them.

Script URLs usually reveal their source: /wp-content/plugins/plugin-name/ for plugins, /wp-content/themes/ for your theme, and external domains for third parties.

Fix 1: Delay Non-Essential JavaScript

Illustration for Fix 1: Delay Non-Essential JavaScript on the Reduce Total Blocking Time WordPress page, showing a code diagram

Analytics, chat, marketing pixels and social widgets don't need to run before someone can read the page. Delaying them until the first interaction removes their blocking time from the initial load.

WP Rocket's Delay JavaScript execution does this sitewide, with one-click exclusions for scripts that must run immediately. Test menus, sliders, forms and consent banners after enabling it. See Delay JavaScript exclusions.

Fix 2: Remove Scripts You Don't Need

Delay helps, but removal helps more. Check for:

See reducing unused JavaScript and reducing third-party code.

Fix 3: Defer the Rest

Deferring scripts lets the browser render the page before running them, and stops them from blocking HTML parsing. WP Rocket's Load JavaScript deferred option handles this, with exclusions for scripts that must run in a particular order.

Deferring reduces render blocking more than TBT itself, but it helps prevent scripts from piling into long tasks early in the load.

Fix 4: Reduce Rendering Work

Illustration for Fix 4: Reduce Rendering Work on the Reduce Total Blocking Time WordPress page, showing a layout diagram

Not all blocking time is JavaScript. Large pages with thousands of elements and heavy CSS take longer for the browser to lay out.

A Simple Example of the TBT Math

Imagine three long tasks during load:

How TBT is calculated
TaskDurationCounts Toward TBT
Theme script120 ms70 ms
Analytics and tag manager300 ms250 ms
Slider library80 ms30 ms
Small tasks under 50 msVarious0 ms
Total Blocking Time350 ms

Delaying the analytics task until interaction removes 250 milliseconds at once. That's why delaying one heavy third-party script often has more effect than many small optimizations.

Why Mobile TBT Is So Much Higher

Lighthouse's mobile test slows the CPU to simulate a mid-range phone. JavaScript that takes 60 milliseconds on your laptop might take several times longer under that throttling, turning short tasks into long ones.

That's not unfair; it reflects what many real visitors experience. It's also why mobile INP is usually the Core Web Vital WordPress sites fail.

Safe Delay JavaScript Exclusions to Consider

When you delay scripts, some must still run immediately so the page works on the first tap:

Menu toggles

Mobile menu buttons need their script before visitors tap them.

Consent banners

Cookie consent scripts often need to run early to control other scripts.

Above-the-fold sliders

If a slider appears in the first screen, exclude its script or replace it with a static image.

Lazy loading scripts

If a plugin lazy loads images with JavaScript, excluding it prevents blank images.

Ad slots above the fold

Some ad setups need their loader early to fill visible slots.

WP Rocket's one-click exclusions cover many common plugins and themes. See Delay JavaScript exclusions.

TBT vs INP: Why Both Matter

TBT compared with INP
TBTINP
TypeLab metricField metric (Core Web Vital)
MeasuresBlocking during page loadResponsiveness throughout the visit
Used for rankingsNoYes
Weight in Lighthouse score30%Not in the lab score
Common causesJavaScript during loadJavaScript during load and on interaction

Reducing TBT usually helps INP, especially for visitors who tap during loading. But INP can still be poor if click handlers are slow after load. See improving INP.

A Worked Example

A blog scores 42 on mobile, with TBT over a second. The JavaScript execution time report lists an ad network script, a tag manager loading several pixels, a social sharing plugin and a page builder's animation library.

The owner removes the social sharing plugin in favor of simple share links, delays the tag manager and pixels until interaction, keeps ad scripts that fill above-the-fold slots and turns off unused builder animations. TBT falls well below the good threshold and the lab score rises sharply, while field INP improves over the following weeks.

Reduce Total Blocking Time WordPress FAQ

What is a good Total Blocking Time?

200 milliseconds or less in Lighthouse's mobile test.

Is TBT a Core Web Vital?

No. It's a lab metric, but it's closely related to INP, which is a Core Web Vital.

What causes high TBT on WordPress?

Mostly JavaScript from third-party services, page builders, themes and plugins running during page load.

Does delaying JavaScript reduce TBT?

Yes. Scripts delayed until interaction don't run during the initial load, so they don't add blocking time.