Сократите время блокировки Ad JS
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Обзор
В ходе этого аудита измеряется время блокировки, связанное со скриптами, связанными с рекламой. Это фиксирует время, когда поток JS блокируется скриптом, связанным с рекламой, на достаточно долгое время, чтобы это было заметно пользователям, поскольку это может напрямую влиять на задержку ввода или загрузку контента.
Рекомендации
Наиболее важным фактором времени блокировки рекламы JS является количество объявлений, загружаемых одновременно. Наши рекомендации:
Чтобы узнать, как определяется время блокировки, прочтите эту статью « Общее время блокировки».
Скрипт считается связанным с рекламой, если он является рекламным тегом или помечен Сторонним веб-сайтом как скрипт «реклама».
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2024-10-30 UTC.
[null,null,["Последнее обновление: 2024-10-30 UTC."],[[["\u003cp\u003eThis audit identifies the time users experience delays due to ad scripts blocking the main thread, which negatively impacts loading speed and responsiveness.\u003c/p\u003e\n"],["\u003cp\u003eThe primary cause of ad-related blocking is loading too many ads simultaneously, so it is recommended to reduce the number or density of ads.\u003c/p\u003e\n"],["\u003cp\u003eOptimizing ad loading by lazy loading below-the-fold ads and reducing batch sizes for Single Request Architecture can minimize blocking and enhance user experience.\u003c/p\u003e\n"],["\u003cp\u003eAd-related scripts are identified through ad tags and third-party web classifications, providing insights into specific scripts contributing to blocking.\u003c/p\u003e\n"]]],["This audit measures blocking time caused by ad-related scripts, impacting user experience through input delay and content loading. Key actions to reduce this time include: loading fewer ads concurrently or reducing ad density, lazy loading ads below the fold, and minimizing batch sizes with Single Request Architecture (SRA) in GPT. A script is ad-related if it is an ad tag or identified as such by Third Party Web. Total blocking time details are in the mentioned article.\n"],null,["# Reduce Ad JS Blocking Time\n\nOverview\n--------\n\nThis audit measures the amount of [blocking time](https://web.dev/tbt/)\nattributable to ad-related scripts. This captures time where the JS thread is\nblocked by an ad-related script for long enough to be noticeable by users as it\ncan directly affect input delay or content loading.\n\nRecommendations\n---------------\n\nThe most important factor in ad JS blocking time is how many ads are being\nloaded at once. Our recommendations are:\n\n- [Load fewer ads at once or reduce ad density](https://developers.google.com/publisher-ads-audits/reference/audits/viewport-ad-density), if feasible\n- [Lazy load ads below the fold](https://developers.google.com/publisher-ads-audits/reference/audits/ads-in-viewport)\n- [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).\n\nMore information\n----------------\n\nTo learn how blocking time is defined, see this article on\n[Total Blocking Time](https://web.dev/lighthouse-total-blocking-time/#what-tbt-measures)\n\nA script is considered to be ad-related if it is either an ad tag or labeled as\nan \"ad\" script by [Third Party Web](https://github.com/patrickhulce/third-party-web). \n[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%3A+total-ad-blocking-time.md)\n\n\u003cbr /\u003e"]]