Scripts block the page for long: TBT 650 ms on 2 pages
In the Lighthouse lab run, Total Blocking Time on the listed pages is above 200 milliseconds (over 600 ms is poor): while the page loads, long JavaScript tasks keep the browser from responding to input. Reduce, split and defer JavaScript, especially third-party scripts.
What it means
Total Blocking Time (lab) stands in for INP when there is no real-user data yet; up to 200 ms is good. Split and defer JavaScript.
Why it matters for AI search
TBT adds up the part of every task longer than 50 ms between the first content appearing and the page becoming reliably interactive. It is a lab measure, not a Core Web Vital, but it predicts responsiveness: pages with a high TBT usually have a poor INP for real users.
The audit reports TBT only for pages that have no real-user INP data, typically pages or sites with little traffic; once INP data exists, the INP finding takes its place. The values come from a PageSpeed Insights mobile run, which simulates a mid-range phone, so they are higher than on a fast computer. The finding is P2 when any page is in the poor range.
How to fix it
- In PageSpeed Insights, open the diagnostics about JavaScript execution time and main-thread work to see which scripts take longest.
- Remove scripts you do not need, and load the rest with
deferorasyncso they do not block the first render. - Load third-party widgets such as chat, video players and social embeds only when the visitor scrolls to them or interacts with them.
- Split large bundles so each page loads only its own code, and break long startup work into smaller tasks.
- Run the site audit again from your account; lab results change at once.
Example
<script src="/js/app.js" defer></script>
<script src="https://widget.example.net/chat.js" async></script>
<!-- Load a heavy embed only on click -->
<button id="play">Play video</button>
<script>
document.getElementById("play").addEventListener("click", e => {
const f = document.createElement("iframe");
f.src = "https://www.youtube-nocookie.com/embed/VIDEO_ID?autoplay=1";
f.width = 560; f.height = 315;
e.target.replaceWith(f);
});
</script> How to confirm the fix
After the change, press "Check again" on the report: it lists what was fixed and how the score changed.