অ্যাসিঙ্ক্রোনাসভাবে বিজ্ঞাপন ট্যাগ লোড করুন
ওভারভিউ
এই অডিট নিশ্চিত করে যে বিজ্ঞাপন ট্যাগ লাইব্রেরি স্ক্রিপ্টগুলি অ্যাসিঙ্ক্রোনাসভাবে লোড করা হয়েছে।
ডিফল্টরূপে, জাভাস্ক্রিপ্ট এক্সিকিউশন সিঙ্ক্রোনাস। এর মানে হল যে একবার একটি স্ক্রিপ্টের সম্মুখীন হলে, সেই স্ক্রিপ্টটি ডাউনলোড, পার্স এবং কার্যকর না হওয়া পর্যন্ত অন্য কোনও সামগ্রী লোড করা যাবে না। অ্যাসিঙ্ক্রোনাস এক্সিকিউশন নির্বাচন করা এটিকে বাধা দেয়, নির্দিষ্ট স্ক্রিপ্টটি ব্যাকগ্রাউন্ডে লোড হওয়ার সময় ব্রাউজারকে অন্যান্য সংস্থান প্রক্রিয়াকরণ চালিয়ে যেতে দেয়। স্ক্রিপ্টগুলি লোড হওয়ার সময় এটি আপনার পৃষ্ঠাটিকে প্রতিক্রিয়াশীল রাখে এবং সমস্ত গুরুত্বপূর্ণ উপাদান লোড করার জন্য প্রয়োজনীয় সময় হ্রাস করে।
সুপারিশ
স্ক্রিপ্ট ট্যাগ সংজ্ঞায় async বৈশিষ্ট্য অন্তর্ভুক্ত করুন। যেমন:
অ্যাডসেন্স
<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>
নিম্নলিখিত বিজ্ঞাপন ট্যাগ লাইব্রেরি স্ক্রিপ্ট সমর্থিত:
বিজ্ঞাপন ট্যাগ লাইব্রেরি | স্ক্রিপ্ট(গুলি) |
---|
অ্যাডসেন্স | 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 সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2024-11-12 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2024-11-12 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"]]