blog posts

Total Blocking Time

What is TBT or Total Blocking Time?

TBT, or Total Blocking Time, is one of the factors of Google Core Web Vitals, which was introduced in 2020. This factor is an important criterion for evaluating and determining our site in Google Page Speed ​​Insights because TBT plays an important role in our audience’s user experience and is effective in SEO.

Do you want to know what TBT is? Exactly what role it plays in the user experience and SEO of the site, and how it is measured, we suggest you read on. At the end of this article, besides knowing what Total Blocking Time is, you will also learn ways to improve and optimize the site’s TBT.

What is TBT or Total Blocking Time?

In answer to this question, we must say that TBT, or Total Blocking Time, is one of the important indicators of Google Core Web Vitals, which evaluates the response speed of our site pages after the user’s request. Google and search engines use Total Blocking Time to assess how long our site has been blocked from receiving user input, and it plays an important role in measuring site performance.

If a site is available to users permanently and without delay, and the pages load so fast that the user does not notice, there will be virtually no TBT. Our user experience will turn into an agile and fast site visit. This means a great user experience for the audience! On the other hand, site loading is associated with long tasks, which act as a blocker and affect the speed of response or interaction between the site and the user.

Browsers use the main thread to execute user requests. The main thread has several functions. If one or more of these tasks takes longer than the standard (i.e., more than 50 milliseconds), we say that the main thread is blocked. When one or more Long Tasks are running, and the execution process takes more than 50 milliseconds, the browser cannot respond immediately to user clicks on our site, thus loading the page until these tasks are fully executed. The site is postponed; until then, the site will be blocked or frozen for the user. But what role does Total Blocking Time play in our site ranking?

The importance of the TBT criterion in ranking sites

As we have learned from the definition of TBT, this factor is directly related to user experience. The importance of user experience for search engines, especially Google, will affect our site SEO and ranking on the SERP results page. We examine TBT regarding user experience and site SEO to better explain this issue. We suggest that you read the article ” Site Speed ​​Optimization ” to learn more about ways to increase site speed.

TBT and audience experience

Regarding user experience, sites are very important for Google to be interactive. TBT shows how successful our site is in interacting quickly with the user, and it directly relates to its user experience. From this two-way draw, we can easily see that the lower the TBT of our site, the better the interaction with the user and the better the user experience. Google also loves sites that can create a pleasurable user experience!

The role of TBT in SEO

However, regarding the effect of TBT on-site SEO, we have to take a little distance from the topic and look at it. On the one hand, Total Blocking Time is one of the factors in Google’s Core Vital Web, and on the other hand, user experience is an extremely important factor that Google uses to rank sites. When we can optimize the TBT value, the audience’s user experience is enhanced. As a result, we get the index score that plays a key role in Google rankings, and we can expect positive results in improving the site’s SEO. We suggest reading the article “SEO Technical” to learn more about the relationship between user experience factors and site SEO.

First, we must determine our site’s total blocking time to determine its status and plan its improvement. In the next section, we will familiarize ourselves with TBT measuring tools.

Site Total Blocking Time measurement tools

Regarding TBT measuring tools, we have to say there are as many different tools as you want. However, since Google’s tools are always our first suggestion, we will introduce Google Page Speed ​​Simulators and Google Lighthouse. Both tools are convenient to use. Other widely used and reliable tools are:

  • GTMetrix
  • Chrome Dev Tools
  • Web Page Test
  • Pingdom
  • Speed ​​Curve

What is the best amount of TBT in SEO?

If our site is well optimized, the average Total Blocking Time should be less than 300 milliseconds. This value is determined by the total Long task executed on the site compared to the 10,000 sites with the best TBT value. Of course, you should know that, according to Google and based on the values ​​that Google Lighthouse announces for evaluating the site TBT, the ranking of the Total Blocking Time factor for sites is as follows:

  • The situation would be great if the total blocking time were between 0 and 300 milliseconds!
  • If the Total Blocking Time is between 300 and 600 milliseconds, it is not a bad idea to start taking the necessary steps to optimize the TBT.
  • If this number exceeds 600 milliseconds, we should start working immediately and optimize Total Blocking Time before the site’s SEO is damaged.

Introducing two quick techniques to identify the factors that increase Total Blocking Time

There are two quick ways to get a proper analysis of how pages work and to identify the long task that increases TBT :

Lighthouse audit Google Chrome

To use DevTools Chrome, you need to enter the Performance panel. First, right-click on the desired page and select “Inspect.” Then enter the “Performance” section and click on “Reload.” We’ll have to wait for Chrome to display the Advisor screen below.

This page is a detailed analysis of how our page works. We will see different tasks if we click on the “main” section. Each task with a red flag next to it is a Long task. If we move the mouse closer to this task, the execution time will be displayed. We can also click “Bottom-Up” to see the description of that task.

DevTools Google Chrome

The next solution is to use DevTools Google Chrome. We have to get to the Lighthouse through the “Inspect” section. On the displayed page, we can select the desired category for analysis and site display tools (mobile or desktop). Then we must click “Generate report” and wait for Chrome suggestions to improve the site, TBT.

Get acquainted with TBT site optimization solutions

With the help of the tools we introduced in the previous section, we can identify long tasks and review Google’s suggestions for improving the site TBT. At this point, we need to modify the block code created by the long tasks. Modifying these codes will greatly help optimize the TBT site. In this regard, we can:

1. Reduce the number of site script requests

The first step to improving TBT in SEO is to minimize unnecessary Main Thread scripts. This prevents the creation of a long task and delays loading the site when the user clicks.

2. Reduce the size of main-thread scripts

Reducing the size of Main Thread scripts is another factor that helps improve the site’s Total Blocking Time. Since we do not have control over access to the Main Thread code, we need to reduce the size of the scripts.

3. Minimize the number of Long tasks in the main browser string

To optimize the TBT benchmark, we need to use tools like Chrome DevTools to scan the main threads of the main thread and identify and optimize tasks that take more than 50 seconds.

In addition to these 3, other solutions will help reduce TBT and improve the user experience of our audience:

  • Delete unnecessary JavaScript and CSS code
  • Compress JavaScript and CSS files
  • Execute splitting code for JavaScript Assets

Frequently Asked Questions

What is the difference between Total Blocking Time and TTI?

In appearance, TBT and tti are quite similar, but these two criteria measure different values. TTI tells us how long it takes for the page to become fully interactive, but TBT is how long the page displays useful content to the user and responds to their inputs.

What is the best and most reliable tool for measuring TBT?

The first and most reliable TBT testing tool is Google’s official tool, Google Lighthouse. Next up is the free Gmetrix tool.

How do you identify long, effective tasks in TBT?

The easiest way to use the Performance panel in DevTools is in the Chrome browser.

Concluding remarks

In this part of the free SEO training articles, we answered the question of what TBT is, got acquainted with the concept of TBT or Total Blocking Time, and learned how Google measures this factor. We also studied its effect on site SEO and learned ways to improve the site TBT. Finally, we recommend that you identify the factors that harm TBT and help optimize the site TBT by eliminating them.