AdSense Update: Improving loading speed with new AdSense code

Adsense Update: New Ad code for better performance

 Recently Adsense team has launched a new Adsense code that will improve your page loading speed by decreasing unnecessary resources. 

Most Bloggers and site owners complain that the page speed is reduced drastically after the AdSense code implementation. It is very difficult to pass the core web vitals score in the page speed insight tool and the real-world Chrome user experience report. 

The New Adsense code is optimized a little bit to improve the loading performance and it will work on both Auto ads and manual ad units. 

Should I upgrade my Adsense code now?

Yes, you should upgrade your old AdSense code with the new ones to boost your speed performance. 

Now Adsense team has replaced all old codes with the new ones in the Adsense dashboard. so, replace the old codes with the new ones in your theme code. 

However, the old codes will still work, if you don’t want to manually change all Adsense codes now. But, I strongly recommend changing it as it improves your speed performance and helps in core web vitals score. 

If you want to change the Ad code on your website, remember these points

  • Update all ad codes on your website and avoid mixing old and new codes for optimal results. 
  • Your publisher ID is the same for all ad codes. 
New Adsense Update

What does the new ad code look like?

The new Auto ads codes will look like this. 

<script async src=”” crossorigin=”anonymous”</script>ghg

The Ad units will look like this. 

<script async src="" crossorigin="anonymous"</script> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-xxxxxxxxxxxxx” data-ad-slot=“xxxxxxxxx” data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script>

What’s the change in this new code compare to the old code?

The new Adsense code has added a new HTML attribute crossorigin=”anonymous”.  It means there will be no exchange of user credentials via cookies, client-side SSL certificates, or HTTP authentication. 

It tells the browser to download the file anonymously to omit any cookies or authentication from the CDN site and prevent any data leaks from sharing information across sites.

In this way, it will save some HTTP requests and load the page faster. This tag is supported by almost all modern browsers except Internet Explorer. 

I hope you got the idea of how it works and how the new Update in Adsense code will help you improve website speed. 

Read the Official Adsense Update Here. 

There are several other ways to speed up a website like lazy loading of Adsense code and other page speed optimization techniques. 

Here are some of the techniques that you can use to instantly speed up your website. 

And more. 

If you want to stay updated with the latest Blogging News and Tutorials, Subscribe to Our YouTube channel Here and share this article with social media. Thank You. 🙂

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *