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
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
| Source | Examples | Typical Fix |
|---|---|---|
| Third-party scripts | Ads, analytics, tag managers, chat, heatmaps, social widgets | Delay until interaction; remove unused services |
| Page builder JavaScript | Animations, sliders, popups, sticky elements | Disable unused widgets; delay where safe |
| Theme JavaScript | Large bundles, jQuery-dependent features | Lighter theme; remove unused features |
| Plugin scripts on every page | Forms, sliders, galleries loaded sitewide | Load only where needed |
| Large DOM and complex CSS | Style and layout calculations | Simplify layouts; reduce unused CSS |
| Embeds | YouTube, maps, social posts | Use preview images; lazy load |
Find the Culprits
Run PageSpeed Insights on mobile
Note TBT in the lab metrics.
Check main-thread work
The diagnostics show how much time goes to script evaluation, style and layout, and rendering.
Check JavaScript execution time
It lists the scripts that take the longest to run, with their URLs.
Check third-party code
It shows which external services use the most main-thread time.
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
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:
- Plugins you no longer use.
- Several tracking tools doing the same job.
- Scripts loaded on every page for features used on a few.
- Page builder widgets and animations you've stopped using.
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
Not all blocking time is JavaScript. Large pages with thousands of elements and heavy CSS take longer for the browser to lay out.
- Remove unused CSS so there's less to calculate. See reducing unused CSS.
- Simplify page builder layouts with fewer nested sections. See reducing DOM size.
- Use WP Rocket's Automatic Lazy Rendering to skip rendering work for content far below the fold.
A Simple Example of the TBT Math
Imagine three long tasks during load:
| Task | Duration | Counts Toward TBT |
|---|---|---|
| Theme script | 120 ms | 70 ms |
| Analytics and tag manager | 300 ms | 250 ms |
| Slider library | 80 ms | 30 ms |
| Small tasks under 50 ms | Various | 0 ms |
| Total Blocking Time | 350 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 | INP | |
|---|---|---|
| Type | Lab metric | Field metric (Core Web Vital) |
| Measures | Blocking during page load | Responsiveness throughout the visit |
| Used for rankings | No | Yes |
| Weight in Lighthouse score | 30% | Not in the lab score |
| Common causes | JavaScript during load | JavaScript 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.