Load GPT from recommended host
Stay organized with collections
Save and categorize content based on your preferences.
Overview
This audit ensures that the Google Publisher Tag (GPT) library is being loaded
from the recommended host. The browser must open a connection to each new host
your page references, which can take significant time. By loading GPT from the
recommended host you ensure that all ad serving requests are made to a single
domain, reducing the number of connections to open and improving page load
performance.
Recommendations
Ensure that GPT is being loaded from securepubads.g.doubleclick.net
. For
example:
<script async src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"></script>
Assessing Loading Performance in Real Life with Navigation and Resource Timing
Get Started with Google Publisher Tags
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 checks if the Google Publisher Tag (GPT) library loads from the recommended host, `securepubads.g.doubleclick.net`. Loading GPT from this host ensures all ad requests use a single domain, reducing connection time and improving page load speed. It is recommended to load GPT using the provided example script tag, ensuring that it's loaded from the specified domain. Using multiple hosts will slow the connection process.\n"],null,[]]