โหลด GPT จากโฮสต์ที่แนะนํา
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ภาพรวม
การตรวจสอบนี้ช่วยให้แน่ใจว่าระบบกำลังโหลดไลบรารีแท็กผู้เผยแพร่โฆษณาผ่าน Google (GPT)
จากโฮสต์ที่แนะนำ เบราว์เซอร์ต้องเปิดการเชื่อมต่อกับโฮสต์ใหม่แต่ละรายการ
ของหน้าเว็บของคุณ ซึ่งอาจใช้เวลานาน โดยการโหลด GPT จาก
โฮสต์ที่แนะนำ ให้คุณตรวจสอบว่าคำขอการแสดงโฆษณาทั้งหมดจะส่งไปยัง
โดเมน ซึ่งช่วยลดจำนวนการเชื่อมต่อเพื่อเปิดและปรับปรุงการโหลดหน้าเว็บ
ด้านประสิทธิภาพ
คำแนะนำ
ตรวจสอบว่ากำลังโหลด GPT จาก securepubads.g.doubleclick.net
สำหรับ
ตัวอย่าง:
<script async src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"></script>
การประเมินประสิทธิภาพการโหลดในชีวิตจริงด้วยการนำทางและระยะเวลาของทรัพยากร
เริ่มต้นใช้งานแท็กผู้เผยแพร่โฆษณาผ่าน Google
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-08-22 UTC
[null,null,["อัปเดตล่าสุด 2024-08-22 UTC"],[[["\u003cp\u003eLoading the Google Publisher Tag (GPT) library from the recommended host (\u003ccode\u003esecurepubads.g.doubleclick.net\u003c/code\u003e) improves page load performance by reducing the number of connections the browser needs to open.\u003c/p\u003e\n"],["\u003cp\u003eThis audit ensures GPT is loaded from the optimal source to streamline ad serving requests and enhance overall website speed.\u003c/p\u003e\n"],["\u003cp\u003eUsing the recommended host for GPT minimizes delays associated with opening new connections for each referenced host.\u003c/p\u003e\n"]]],["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,["# Load GPT from recommended host\n\nOverview\n--------\n\nThis audit ensures that the Google Publisher Tag (GPT) library is being loaded\nfrom the recommended host. The browser must open a connection to each new host\nyour page references, which can take significant time. By loading GPT from the\nrecommended host you ensure that all ad serving requests are made to a single\ndomain, reducing the number of connections to open and improving page load\nperformance.\n\nRecommendations\n---------------\n\nEnsure that GPT is being loaded from `securepubads.g.doubleclick.net`. For\nexample: \n\n \u003cscript async src=\"https://securepubads.g.doubleclick.net/tag/js/gpt.js\"\u003e\u003c/script\u003e\n\nMore information\n----------------\n\n[Assessing Loading Performance in Real Life with Navigation and Resource Timing](https://developers.google.com/web/fundamentals/performance/navigation-and-resource-timing) \n\n[Get Started with Google Publisher Tags](https://developers.google.com/publisher-tag/guides/get-started) \n[View audit source](https://github.com/googleads/publisher-ads-lighthouse-plugin/tree/HEAD/lighthouse-plugin-publisher-ads/audits/loads-gpt-from-official-source.js) [Improve this article](https://github.com/googleads/publisher-ads-lighthouse-plugin/tree/HEAD/docs/audits/loads-gpt-from-official-source.md) [Report an issue](https://github.com/googleads/publisher-ads-lighthouse-plugin/issues/new?labels=documentation&template=documentation-feedback.md&title=Documentation+feedback%3A+loads-gpt-from-official-source.md)\n\n\u003cbr /\u003e"]]