विज्ञापन टैग को एसिंक्रोनस रूप से लोड करें
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
खास जानकारी
यह ऑडिट पक्का करता है कि विज्ञापन टैग लाइब्रेरी की स्क्रिप्ट एसिंक्रोनस रूप से लोड की गई हों.
डिफ़ॉल्ट रूप से, JavaScript को सिंक करके चलाया जाता है. इसका मतलब है कि एक बार स्क्रिप्ट
सामने नहीं आती है, तो जब तक स्क्रिप्ट न आ जाए, तब तक कोई अन्य सामग्री लोड नहीं की जा सकती
डाउनलोड, पार्स, और एक्ज़ीक्यूट किया गया. एसिंक्रोनस प्रोसेस को ऑप्ट-इन करने से,
इससे ब्राउज़र अन्य संसाधनों को संसाधित करना जारी रख सकता है, जबकि
बताई गई स्क्रिप्ट बैकग्राउंड में लोड होती है. इससे आपका पेज रिस्पॉन्सिव रहता है
जब स्क्रिप्ट लोड हो रही होती हैं और सभी ज़रूरी एलिमेंट को लोड होने में लगने वाले समय को कम कर देती है
कॉम्पोनेंट.
सुझाव
स्क्रिप्ट टैग की परिभाषा में async एट्रिब्यूट शामिल करें. उदाहरण के लिए:
AdSense
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
AdSense (अपने-आप चलने वाले विज्ञापन)
<script async data-ad-client="ca-pub-xxxxxxxxxxxxxxxx" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
Google पब्लिशर टैग
<script async src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"></script>
इन विज्ञापन टैग लाइब्रेरी स्क्रिप्ट का इस्तेमाल किया जा सकता है:
विज्ञापन टैग लाइब्रेरी |
स्क्रिप्ट |
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
|
Google प्रकाशक टैग का इस्तेमाल शुरू करें
GPT अनुरोध के मोड और एसिंक्रोनस रेंडरिंग
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-10-15 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2024-10-15 (UTC) को अपडेट किया गया."],[[["This audit verifies if ad tag library scripts are loaded asynchronously to improve page performance."],["Asynchronous loading allows the browser to load other content while the script loads in the background, preventing delays and improving user experience."],["To enable asynchronous loading, include the `async` attribute within the `\u003cscript\u003e` tag when implementing ad tags like AdSense and Google Publisher Tag."],["Synchronous loading, where the browser waits for the script to fully load before proceeding, can negatively impact page load times and overall performance."]]],["To optimize page load times, ad tag library scripts should load asynchronously. This is achieved by including the `async` attribute within the `\u003cscript\u003e` tag. Asynchronous loading allows the browser to continue loading other page content while the script downloads and executes in the background. Supported ad tag libraries include AdSense and Google Publisher Tag, with specific script URLs like `pagead2.googlesyndication.com/pagead/js/adsbygoogle.js` and `securepubads.g.doubleclick.net/tag/js/gpt.js` needing the `async` attribute.\n"]]