โหลดแท็กเพียงครั้งเดียวต่อเฟรม
ภาพรวม
การตรวจสอบนี้ช่วยให้มั่นใจได้ว่าไม่มีเฟรมใดโหลดสคริปต์ไลบรารีแท็กโฆษณาเดียวกันเกิน 1 ครั้ง การใส่สคริปต์เดียวกันหลายๆ ครั้งเป็นสิ่งที่ไม่จำเป็นและอาจทำให้ประสิทธิภาพของหน้าเว็บลดลงได้
การแนะนำวิดีโอ
นำสคริปต์ไลบรารีแท็กโฆษณาที่ซ้ำออก ในบางกรณี สคริปต์ที่ซ้ำกันอาจโหลดจาก 2 ตำแหน่งโดยไม่ได้ตั้งใจ ตรวจสอบว่าสคริปต์ที่ซ้ำกันแต่ละรายการมาจากไหนโดยตรวจสอบการจราจรของข้อมูลในเครือข่ายและจัดกลุ่มคำขอตามเฟรม
ระบุแหล่งที่มาของสคริปต์ที่ซ้ำ
ใช้แท็บ "เครือข่าย" ใน Chrome DevTools เพื่อระบุเฟรมที่กำลังโหลดสคริปต์ที่ซ้ำ
- เปิดเครื่องมือสำหรับนักพัฒนาเว็บโดยกด
Control+Shift+J
หรือ Command+Option+J
(Mac)
- ไปที่แท็บเครือข่าย
- หากไม่เห็น ให้คลิกตัวกรอง
เพื่อเปิดแถบตัวกรองและเลือก
JS
- เปิดการตั้งค่าเครือข่าย
แล้วเลือก
จัดกลุ่มตามเฟรม
- โหลดหน้านี้ซ้ำเพื่อบันทึกการจราจรของข้อมูลในเครือข่าย

ระบบจะรองรับสคริปต์ไลบรารีแท็กโฆษณาต่อไปนี้
คลัง |
สคริปต์ |
AdSense |
pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
pagead2.googlesyndication.com/pagead/js/show_ads.js
|
แท็กผู้เผยแพร่โฆษณาผ่าน Google |
googletagservices.com/tag/js/gpt.js
securepubads.g.doubleclick.net/tag/js/gpt.js
|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-06-26 UTC
[null,null,["อัปเดตล่าสุด 2024-06-26 UTC"],[[["This audit helps improve website performance by ensuring ad tag library scripts are only loaded once per frame."],["Loading duplicate scripts can slow down page load times and negatively impact user experience."],["Chrome DevTools' Network tab, with grouping by frame enabled, can be used to identify the source of duplicate ad tag scripts."],["AdSense and Google Publisher Tag have specific scripts that should be monitored to ensure single loading instances."]]],["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"]]