Load tags only once per frame
Stay organized with collections
Save and categorize content based on your preferences.
Overview
This audit ensures that no frames load the same ad tag library script more than
once. Including the same script multiple times is unnecessary and can lead to
decreased page performance.
Recommendations
Remove duplicate ad tag library scripts. In some cases, duplicate scripts can be
unknowingly loaded from two different locations. Examine where each duplicate
script is coming from by reviewing network traffic and grouping requests by
frame.
Identify the source of duplicate scripts
Use the Network tab in Chrome DevTools to determine which frame is loading duplicate scripts.
- Open DevTools by pressing
Control+Shift+J
or Command+Option+J
(Mac).
- Navigate to the Network tab.
- If not already visible, click Filter
to open the filter bar and select
JS.
- Open Network Settings
and select
Group by frame.
- Reload the page to capture network traffic.

The following ad tag library scripts are supported:
Library |
Script(s) |
AdSense |
pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
pagead2.googlesyndication.com/pagead/js/show_ads.js
|
Google Publisher Tag |
googletagservices.com/tag/js/gpt.js
securepubads.g.doubleclick.net/tag/js/gpt.js
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-06-26 UTC.
[null,null,["Last updated 2024-06-26 UTC."],[],["The audit identifies duplicate ad tag library scripts, which negatively impact page performance. To resolve this, users should remove the redundant scripts. Utilize Chrome DevTools' Network tab, filtering for JS and grouping requests by frame, to find where duplicates originate. Supported libraries include AdSense (with scripts `pagead2.googlesyndication.com/pagead/js/adsbygoogle.js` and `show_ads.js`) and Google Publisher Tag (`googletagservices.com/tag/js/gpt.js` and `securepubads.g.doubleclick.net/tag/js/gpt.js`). The goal is ensuring each script loads only once.\n"],null,[]]