विज्ञापन दिखाने से रोकने वाले संसाधनों से बचें
खास जानकारी
इस ऑडिट से उन संसाधनों (खास तौर पर, स्क्रिप्ट और स्टाइलशीट) की पहचान की जाती है जो
विज्ञापन टैग लाइब्रेरी को लोड करने में देरी कर रहे हैं. ये ऐसे संसाधन हैं जिनके लिए अनुरोध किया गया था और ये विज्ञापन टैग लाइब्रेरी के लोड होने से पहले मिले थे. टैग लोड होने से पहले, अनुरोध किए गए रिसॉर्स की संख्या कम करने पर, विज्ञापन तेज़ी से लोड होगा.
सुझाव
इस ऑडिट की जानकारी में, उन सभी स्क्रिप्ट और स्टाइलशीट की सूची शामिल है
जिनकी वजह से टैग लोड होने में देरी हो रही है. इसका मकसद इस सूची में एंट्री की संख्या को जितना हो सके उतना कम करना है. ऐसा करने की कुछ सलाह:
- विज्ञापन टैग लाइब्रेरी को पेज के
<head>
में पहले लोड किया जा रहा है.
- मुख्य फ़ंक्शन के लिए, सीधे आपके एचटीएमएल में ज़रूरी स्क्रिप्ट और स्टाइलशीट को इनलाइन करना.
- गैर-ज़रूरी स्क्रिप्ट को
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 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-06-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-06-26 (UTC) को अपडेट किया गया."],[[["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"]]