총 차단 시간

Published on Updated on

Translated to: English, Español, Português, 中文, Pусский, 日本語

총 차단 시간(TBT)은 Lighthouse 보고서의 성능 섹션에서 추적하는 메트릭 중 하나입니다. 각 메트릭은 페이지 로드 속도의 일부 측면을 포착합니다.

Lighthouse 보고서는 TBT를 밀리초 단위로 표시합니다.

Lighthouse 총 차단 시간 감사를 보여주는 스크린샷

TBT 측정 항목

TBT는 마우스 클릭, 화면 탭 또는 키보드 누름과 같은 사용자 입력으로부터 페이지가 응답하지 못하도록 차단된 총 시간을 측정합니다. 합계는 최초 콘텐츠풀 페인트상호 작용까지의 시간 사이의 모든 긴 작업차단 부분을 더하여 계산합니다. 50ms 이상 실행되는 모든 작업은 긴 작업입니다. 50ms 이후의 시간이 차단 부분입니다. 예를 들어 Lighthouse가 70ms 길이의 작업을 감지하면 차단 부분은 20ms가 됩니다.

Lighthouse가 TBT 점수를 산정하는 방법

TBT 점수는 모바일 장치에 로드되었을 때의 페이지 TBT 시간과 수백만 개의 실제 사이트 TBT 시간을 비교한 것입니다. Lighthouse 점수 임계값이 설정되는 방식을 알아보려면 메트릭 점수를 산정하는 방식/a0}을 참조하십시오.

다음 표는 TBT 점수를 해석하는 방식을 보여줍니다.

TBT 시간
(밀리초)
색상 코딩
0–200녹색(빠름)
200-600주황색(보통)
600 초과빨간색(느림)

See the Lighthouse performance scoring post to learn how your page's overall performance score is calculated.

TBT 점수를 높이는 방법

Chrome DevTools의 성능 패널로 긴 작업의 근본 원인을 진단하는 방법을 알아보려면 긴 작업의 원인은 무엇입니까? 를 참조하십시오.

일반적으로 긴 작업의 가장 일반적인 원인은 다음과 같습니다.

  • 불필요한 JavaScript 로딩, 구문 분석 또는 실행. 성능 패널에서 코드를 분석하는 동안 기본 스레드가 페이지를 로드하는 데 실제로 필요하지 않은 작업을 수행하고 있음을 발견할 수 있습니다. 코드 분할로 JavaScript 페이로드 줄이기, 사용하지 않는 코드 제거 또는 타사 JavaScript를 효율적으로 로드하면 TBT 점수가 향상됩니다.
  • 비효율적인 JavaScript 문. 예를 들어 성능 패널에서 코드를 분석한 후 2000개의 노드를 반환하는 document.querySelectorAll('a')에 대한 호출이 표시된다고 가정합니다. 10개의 노드만 반환하는 등 더 구체적인 선택기를 사용하도록 코드를 리팩토링하면 TBT 점수가 향상됩니다.

불필요한 JavaScript 로드, 구문 분석 또는 실행은 일반적으로 대부분의 사이트에서 개선할 수 있는 훨씬 더 큰 기회입니다.

How to improve your overall Performance score

Unless you have a specific reason for focusing on a particular metric, it's usually better to focus on improving your overall Performance score.

Use the Opportunities section of your Lighthouse report to determine which improvements will have the most value for your page. The more significant the opportunity, the greater the effect it will have on your Performance score. For example, the Lighthouse screenshot below shows that eliminating render-blocking resources will yield the biggest improvement:

Lighthouse: Opportunities section

See the Performance audits landing page to learn how to address the opportunities identified in your Lighthouse report.

참고 자료

Updated on Improve article

This site uses cookies to deliver and enhance the quality of its services and to analyze traffic. If you agree, cookies are also used to serve advertising and to personalize the content and advertisements that you see. Learn more about our use of cookies.