Mobile app version of vmapp.org
Login or Join
Angela700

: Why does AdSense code not conform to Google page-speed insights requirements? I run my website through numerous of testing websites including Google page-speed insights. The problem is that Google

@Angela700

Posted in: #GoogleAdsense #GoogleAdsensePolicies #GooglePagespeed

I run my website through numerous of testing websites including Google page-speed insights. The problem is that Google AdSense code doesn't validate perfectly and for that reason, my score is no higher than 98%. This is what Google states:


Consider Fixing:


Leverage browser caching
Setting an expiry date or a maximum age in the HTTP headers for static resources instructs the browser to load previously downloaded resources from local disk rather than over the network.
Leverage browser caching for the following cacheable resources:

googleads.g.doubleclick.net/mads/static/formats/templates.js (60 minutes)
pagead2.googlesyndication.com/pagead/js/adsbygoogle.js (60 minutes)
pagead2.googlesyndication.com/pagead/osd.js (60 minutes)

Minify JavaScript
Compacting JavaScript code can save many bytes of data and speed up downloading, parsing, and execution time.
Minify JavaScript for the following resources to reduce their size by 536B (2% reduction).

Minifying pagead2.googlesyndication.com/…s/r20150409/r20150224/expansion_embed.js could save 536B (2% reduction) after compression.




If I took off all advertisements, I would score 100%. The only way I could see me score 100% with AdSense is to make my webserver download their source code and modify it to comply with pagespeed insights but if I did that, then I'd get in trouble with AdSense as I'm then violating their policies.

Why should my site suffer the 2% if the problem is related to Google?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Angela700

1 Comments

Sorted by latest first Latest Oldest Best

 

@Heady270

You say that there are page speed requirements but they are actually recommendations, guidelines, and best practices. Most of the time, you would do better to follow the advice, but there are times when the advice is inappropriate or not worth the effort.

You don't need to get a perfect score. Any score about "80%" is probably good enough. For search engine optimization purposes, I've found that Google doesn't penalize sites in any way as long as they load and render in under 3 seconds. Further improvements can be good for users, but won't result in better rankings. Load times of 3 to 7 seconds appear to cause users to turn away which can lower rankings. Load times of greater than 7 seconds are actively penalized by Google.

Load times are generally measure until the "DOM Ready" event which is when the page is generally usable by the user. Ads typically load asynchronously. The page can be usable before the ads load and the ads shouldn't delay the DOM Ready event.

Google ignores the caching suggestions for AdSense ads because the ads are dynamic. The JavaScript that writes the ads into your site is dynamic. The ads can change with every refresh. Caching could break this functionality.

As far as minimization goes, a 2% reduction isn't great savings. In that case, it just isn't worth the effort of doing it.

If you want your site to make money with ads, you are going to have to accept the lower score.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme