I’ve been working on optimizing my website’s Core Web Vitals for better user experience and SEO performance. However, I’ve noticed that some of the AdSense scripts and assets are negatively impacting my site’s performance metrics, particularly in the areas of Largest Contentful Paint (LCP) and Cumulative Layout Shift (CLS).
Upon analyzing my site’s performance using tools like Google PageSpeed Insights and Lighthouse, I found that the AdSense scripts are contributing significantly to the total blocking time and render-blocking resources, ultimately leading to poor LCP and CLS scores.
I’m wondering if there are any strategies or best practices to optimize AdSense scripts and assets to minimize their impact on Core Web Vitals. Are there specific configurations, lazy-loading techniques, or other optimizations that can be implemented to improve the loading performance of AdSense ads without sacrificing ad revenue or violating AdSense policies?
I’m only calling the Adsense script once on each page. I have also optimized the site.
2
Answers
It’s hard to give specific advice without seeing the website in question, but there’s some general guidance for loading ads effectively without impacting performance that might be useful to you.
I’m also failing Core Web Vitals test due to Largest Contentful Paint (LCP), Interaction to Next Paint (INP) and First Contentful Paint (FCP)
Total Blocking Time is also one of my main problem. If I remove the Adsense code from the site, the score goes up to 100 but when I put it back goes to 77 at most (50 – 77 depending of the ads that shows).
I figured out how to pass the CLS problem with a where I put the Adsense code. In this way the page reserves the space for the ads.
Now I’m on a trial when I removed my best paying ad, located just below the menu, right in front of eyes of visitors. This step contributed to reduce the time for "Largest Contentful Paint element" which is an image that load faster now. When the ad code was above the image, the later took forever to load because of the ad loading very slow.
Now I don’t have any ad above the fold with a big impact on revenue. The downside of this step is that the number of clicks dropped by 30 – 50% which is not very pleasant.
I applied for validation on Google Search Console and I’m waiting for results and I think I will pass the validation. I’ll wait for a month or so to see if the positions of SERP changes and then I’ll put back the best ad and wait to fail again the Core Web Vitals.