從建議的主機載入 GPT
總覽
這項稽核可確保系統從建議的主機載入 Google 發布商廣告代碼 (GPT) 程式庫。瀏覽器必須為每個新主機開啟連線
因為這可能需要花費相當多的時間透過從建議的主機載入 GPT,可確保所有廣告放送請求都傳送至單一網域,藉此減少開啟的連線數量,並改善網頁載入效能。
建議
確保 GPT 是從 securepubads.g.doubleclick.net
載入。例如:
<script async src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"></script>
透過導覽和資源時機評估現實生活中的載入效能
開始使用 Google 發布商廣告代碼
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-10-15 (世界標準時間)。
[null,null,["上次更新時間:2024-10-15 (世界標準時間)。"],[[["Loading the Google Publisher Tag (GPT) library from the recommended host (`securepubads.g.doubleclick.net`) improves page load performance by reducing the number of connections the browser needs to open."],["This audit ensures GPT is loaded from the optimal source to streamline ad serving requests and enhance overall website speed."],["Using the recommended host for GPT minimizes delays associated with opening new connections for each referenced host."]]],["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"]]