تجنُّب الموارد التي تمنع عرض الإعلانات
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
نظرة عامة
تحدِّد عملية التدقيق هذه الموارد (خصوصًا النصوص البرمجية وأوراق الأنماط) التي تؤخّر تحميل مكتبات علامات الإعلانات. وهذه هي الموارد التي تم طلبها وتلقّيها قبل بدء تحميل مكتبات علامات الإعلانات. وسيؤدي تقليل عدد الموارد المطلوبة قبل تحميل العلامة إلى زيادة سرعة تحميل الإعلانات.
اقتراحات
تحتوي تفاصيل عملية التدقيق هذه على قائمة بجميع النصوص البرمجية وأوراق الأنماط التي تؤخر تحميل العلامة. الهدف هو تقليل عدد الإدخالات في هذه القائمة قدر الإمكان إلى 0. وفي ما يلي بعض النصائح لإجراء ذلك:
- جارٍ تحميل مكتبات علامات الإعلانات في وقت سابق في
<head>
على الصفحة.
- تضمين النصوص البرمجية وأوراق الأنماط المهمة للوظائف الأساسية مباشرةً في HTML
- وضع علامة على النصوص البرمجية غير المهمة باستخدام السمتَين
async
أو defer
- فصل الأنماط إلى ملفات مختلفة من خلال الاستعلام عن الوسائط واستخدام السمة
media
لتحميلها عند الحاجة فقط
تتوفّر النصوص البرمجية التالية لمكتبات علامات الإعلانات:
المكتبة |
النصوص |
AdSense |
pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
pagead2.googlesyndication.com/pagead/show_ads.js
|
علامة "ناشر Google" |
googletagservices.com/tag/js/gpt.js
securepubads.g.doubleclick.net/tag/js/gpt.js
|
عرض الموارد المحظورة
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eThis audit helps identify scripts and stylesheets that slow down the loading of ad tags by being requested before them.\u003c/p\u003e\n"],["\u003cp\u003eReducing the number of these resources loaded prior to ad tags can significantly improve ad loading speed.\u003c/p\u003e\n"],["\u003cp\u003eOptimization strategies include loading ad tags earlier, inlining critical resources, using \u003ccode\u003easync\u003c/code\u003e or \u003ccode\u003edefer\u003c/code\u003e for non-critical scripts, and separating stylesheets by media query.\u003c/p\u003e\n"],["\u003cp\u003eSupported ad tag libraries include AdSense and Google Publisher Tag, with specific script URLs for identification.\u003c/p\u003e\n"]]],["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"],null,["# Avoid render-blocking resources\n\nOverview\n--------\n\nThis audit identifies resources (specifically scripts and stylesheets) which are\ndelaying the loading of ad tag libraries. These are resources that were\nrequested and received before ad tag libraries began loading. Reducing the\nnumber of resources requested prior to tag load will speed up ad loading.\n\nRecommendations\n---------------\n\nThe details of this audit contain a list of all scripts and stylesheets that are\ndelaying tag load. The goal is to reduce the number of entries in this list as\nclose to 0 as possible. Some tips for doing this include:\n\n- Loading ad tag libraries earlier in the `\u003chead\u003e` of the page.\n- Inlining scripts and stylesheets critical to core functionality directly into your HTML.\n- Marking non-critical scripts with the `async` or `defer` attributes.\n- Separating styles into different files by media query and using the `media` attribute to load them only when needed.\n\nMore information\n----------------\n\nThe following ad tag library scripts are supported:\n\n| Library | Script(s) |\n|----------------------|-------------------------------------------------------------------------------------------------------------|\n| AdSense | `pagead2.googlesyndication.com/pagead/js/adsbygoogle.js` `pagead2.googlesyndication.com/pagead/show_ads.js` |\n| Google Publisher Tag | `googletagservices.com/tag/js/gpt.js` `securepubads.g.doubleclick.net/tag/js/gpt.js` |\n\n[Rendering Blocking Resources](https://developers.google.com/web/tools/lighthouse/audits/blocking-resources) \n[View audit source](https://github.com/googleads/publisher-ads-lighthouse-plugin/tree/HEAD/lighthouse-plugin-publisher-ads/audits/ad-render-blocking-resources.js) [Improve this article](https://github.com/googleads/publisher-ads-lighthouse-plugin/tree/HEAD/docs/audits/ad-render-blocking-resources.md) [Report an issue](https://github.com/googleads/publisher-ads-lighthouse-plugin/issues/new?labels=documentation&template=documentation-feedback.md&title=Documentation+feedback%3A+ad-render-blocking-resources.md)\n\n\u003cbr /\u003e"]]