Newspaper and Google Ads – Pagespeed

Posted in: Newspaper
Post count: 161

Hi,

I am facing several optimization issues, where I use everything that is recommended, such as Wp Rocket plugin for caching, etc.

The problem is that on mobile the score is always low where it is given reason for css problems, etc., and from what I see, the biggest problem is google ads and its cmp.

I don’t know how to solve it, I’ve tried timeout or no scroll, but that’s very negative, especially if you put java to run in the scroll, because I need google’s cmp to appear first. What to do?

Example: https://pagespeed.web.dev/analysis/https-osmelhoresdoces-com-crepes-com-doce-de-leite/qnk8goyjar?form_factor=mobile

Thanks,

Post count: 9544

Sadly, Google’s ad platform is crap. They do all the stuff they once penalized sites for, like moving content below the fold, slowing down page, causing page to move around, and poor time to load.

Not sure if tagdiv emables any of this, or plugin needed,
ref
https://developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/preload

(I don’t work here.)

Post count: 21065

Hello!


@simchris
Unfortunately, no.


@nitrofox
Make sure you’ve tried all the optimization suggestions from here:
https://forum.tagdiv.com/wp-rocket-and-newspaper-theme-optimization-guide/
https://forum.tagdiv.com/autoptimize-install-configuration/
https://forum.tagdiv.com/how-to-make-the-site-faster/
https://forum.tagdiv.com/cloudflare-cdn/
Limit the number of backups: https://app.screencast.com/M5Wco6Td6nymr
Google AdSense and CMP scripts (especially Google’s own CMP) are notorious for slowing down mobile performance on tools like PageSpeed Insights. You mentioned trying a timeout or “run on scroll” for JavaScript. While that helps ads, it’s problematic for CMP. As advice: Let the CMP load first, but delay ad-related JavaScript. Delay ad scripts, improve First Contentful Paint (FCP), and still show ads. Another workaround here could be to use data-block-on-consent for Ads. Please eliminate Unused CSS with PurgeCSS or WP Rocket Add-ons. Enable “Remove Unused CSS” if not already on.
In the WP Rocket -> Delay Javascript execution, you can add:
adsbygoogle.js
gpt.js
googletagmanager.com
googlesyndication.com
Any js code can be added here: https://app.screencast.com/uDYjK7nL0vKG8
I hope that helps you!

Thank you!

Post count: 161

I understand what you’re saying, but I’ve done it all.

There is no way to delay Adsense Ads without delaying CMP at the same time, because both are linked to the same code.

On the other hand, I don’t understand why I have warned in pagespeed of lack of optimizations in css, when they are active in wp rocket.

https://pagespeed.web.dev/analysis/https-osmelhoresdoces-com-crepes-de-frutas-e-chocolate/kx16z2ovf4?hl=en&form_factor=mobile

Reduce unused CSS

…default/style.css?ver=174…&wpr_t=174
…block-library/style.min.css?ver=6.8
…mobile/style.css?ver=174…&wpr_t=174

Eliminate render-blocking resources Potential savings of 860 ms

…default/style.css?ver=174…&wpr_t=174
…block-library/style.min.css?ver=6.8
…mobile/style.css?ver=174…&wpr_t=174

Avoid large layout shifts 1 layout shift found
<div class=”td-container” style=”height: auto !important;”>

Post count: 21065

Hello!

If both are tied into the same script right now, that’s just how your site is currently structured — it’s not a limitation of AdSense or CMPs themselves.

They seem to be from the cache folder. Please check the full URL from the Pagespeed Insights.

Please note that page speed is not covered by the support team: https://forum.tagdiv.com/newspaper-theme-support/

Thank you for understanding!

Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.