از منابع مسدودکننده رندر خودداری کنید
بررسی اجمالی
این ممیزی منابعی (به ویژه اسکریپت ها و شیوه نامه ها) را شناسایی می کند که بارگذاری کتابخانه های برچسب تبلیغات را به تاخیر می اندازند. اینها منابعی هستند که قبل از بارگیری کتابخانه های برچسب آگهی درخواست و دریافت شده اند. کاهش تعداد منابع درخواست شده قبل از بارگذاری برچسب، سرعت بارگذاری تبلیغات را افزایش می دهد.
توصیه ها
جزئیات این ممیزی شامل فهرستی از تمام اسکریپت ها و شیوه نامه هایی است که بارگذاری برچسب را به تاخیر می اندازند. هدف این است که تعداد ورودی های این لیست را تا حد امکان به 0 کاهش دهیم. برخی از نکات برای انجام این کار عبارتند از:
- بارگیری کتابخانههای تگ تبلیغات در
<head>
صفحه. - اسکریپت ها و شیوه نامه ها برای عملکرد اصلی به طور مستقیم در HTML خود قرار دهید.
- علامتگذاری اسکریپتهای غیر بحرانی با ویژگیهای
async
یا defer
. - جداسازی سبک ها به فایل های مختلف با کوئری رسانه و استفاده از ویژگی
media
برای بارگیری آنها فقط در صورت نیاز.
اسکریپت های کتابخانه برچسب تبلیغات زیر پشتیبانی می شوند:
کتابخانه | اسکریپت(های) |
---|
AdSense | pagead2.googlesyndication.com/pagead/js/adsbygoogle.js pagead2.googlesyndication.com/pagead/show_ads.js |
برچسب Google Publisher | googletagservices.com/tag/js/gpt.js securepubads.g.doubleclick.net/tag/js/gpt.js |
Rendering Blocking Resources
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-10-30 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-10-30 بهوقت ساعت هماهنگ جهانی."],[[["This audit helps identify scripts and stylesheets that slow down the loading of ad tags by being requested before them."],["Reducing the number of these resources loaded prior to ad tags can significantly improve ad loading speed."],["Optimization strategies include loading ad tags earlier, inlining critical resources, using `async` or `defer` for non-critical scripts, and separating stylesheets by media query."],["Supported ad tag libraries include AdSense and Google Publisher Tag, with specific script URLs for identification."]]],["The audit identifies scripts and stylesheets that delay ad tag library loading. To improve ad loading speed, reduce the number of resources requested before tag loading. Key actions include loading ad tag libraries earlier, inlining critical scripts/stylesheets, marking non-critical scripts with `async` or `defer`, and using the `media` attribute for conditional stylesheet loading. Supported ad tag libraries include AdSense and Google Publisher Tag, each with specific script URLs. The goal is to have minimal or zero items on this list.\n"]]