# Reduce Ad JS Blocking Time

## Overview

This audit measures the amount of [blocking time](https://web.dev/tbt/)
attributable to ad-related scripts. This captures time where the JS thread is
blocked by an ad-related script for long enough to be noticeable by users as it
can directly affect input delay or content loading.

## Recommendations

The most important factor in ad JS blocking time is how many ads are being
loaded at once. Our recommendations are:

- [Load fewer ads at once or reduce ad density](https://developers.google.com/publisher-ads-audits/reference/audits/viewport-ad-density), if feasible
- [Lazy load ads below the fold](https://developers.google.com/publisher-ads-audits/reference/audits/ads-in-viewport)
- [Reduce batch sizes if using Single Request Architecture (SRA) in GPT](https://developers.google.com/publisher-tag/guides/publisher-console-messages#TOO_MANY_SLOTS_IN_SRA_REQUEST).

## More information

To learn how blocking time is defined, see this article on
[Total Blocking Time](https://web.dev/lighthouse-total-blocking-time/#what-tbt-measures)

A script is considered to be ad-related if it is either an ad tag or labeled as
an "ad" script by [Third Party Web](https://github.com/patrickhulce/third-party-web).
[View audit source](https://github.com/googleads/publisher-ads-lighthouse-plugin/tree/HEAD/lighthouse-plugin-publisher-ads/audits/total-ad-blocking-time.js) [Improve this article](https://github.com/googleads/publisher-ads-lighthouse-plugin/tree/HEAD/docs/audits/total-ad-blocking-time.md) [Report an issue](https://github.com/googleads/publisher-ads-lighthouse-plugin/issues/new?labels=documentation&template=documentation-feedback.md&title=Documentation+feedback:+total-ad-blocking-time.md)

<br />