Forum Moderators: martinibuster

Message Too Old, No Replies

Adsense slowing things again

pagead2.googlesyndication.com/pagead/osd.js

         

bumpski

1:37 pm on Jul 25, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just happened to run a pagespeed test on a page and learned about this:
http://developers.google.com/speed/pagespeed/insights/
Compressing [pagead2.googlesyndication.com...] could save 26.4KiB (61% reduction).
Adsense loads so much "stuff", it really needs to be consolidated; and, to put out a javascript that isn't compressed?

I now load the Adsense javascript after onload and after all of the content the visitor is interested in has loaded. Fortunately these days I believe this even meets the spirit of the Adsense TOS. Unfortunately Adsense frequently blocks the scroll bar for seconds. And there seems to be times where it causes the first click of the "back" button to fail. Anybody else notice this?

not2easy

3:07 pm on Jul 25, 2014 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



On reading more at the /pagespeed/insights/ pages, I switched to asynchronous ads and it makes a difference - but the biggest difference was in converting some of the other javascripts used (on just about every page) into external .js files and compressing them. Oh, and moving them out of their traditional loading order in the head. AdSense seems to appreciate the changes (so far).