Google adsense on test results - Printable Version
+- WebPagetest Forums (http://www.webpagetest.org/forums)
+-- Forum: Web Performance (/forumdisplay.php?fid=3)
+--- Forum: Discuss Test Results (/forumdisplay.php?fid=4)
+--- Thread: Google adsense on test results (/showthread.php?tid=760)
Pages: 1 2
Google adsense on test results - D0gSoldi3r - 05-17-2011 03:02 AM
Okay here it is my site runs smooth and fast however the test results also show adsense, the adsense takes 12 seconds to load. How is this my fault, there is nothing i can do to effect adsense, if they decide to run .flv movies from universal studios how can i stop that
So every time i run webpagetest it tells me i have a slow site because of adsense.
RE: Google adsense on test results - pmeenan - 05-17-2011 03:19 AM
Umm, technically, if you have a slow site because of adsense, you have a slow site (the same could be said for any other 3rd party widget you put on your site like facebook like buttons, etc) ;-)
More seriously, for recent browsers (IE 8+), adsense should load asynchronously now so even if it is slow your page content should not be delayed because of it. You should probably verify by enabling the video capture for a test and make sure the page content loads quickly.
If you want to test the site in isolation and remove the adsense impact from the times you can use the content blocking feature in the advanced settings and block the adsense js (and you can also do a comparison video against the normal site to see the real user impact).
RE: Google adsense on test results - D0gSoldi3r - 05-17-2011 03:35 AM
There is a huge load on my site because of adsense, i'm not going to take it off. So what can i do.
RE: Google adsense on test results - pmeenan - 05-17-2011 05:23 AM
Here is a comparison of the site with and without adsense: http://www.webpagetest.org/video/compare.php?tests=110516_02_4bb05c0824dac4c535511eeb322059ad,110516_QN_39f043d539e5b1603fc3b45b5df8ca48
I think you were seeing some really long loads because of a video ad that played after onLoad but the impact to the actual page itself loading looks like it's only ~100ms (using IE8 which has the async support in adsense).
The only reason I recommended blocking adsense for running a test was so you could see if you had any room for optimization outside of the ads and to get a cleaner read on the page itself: http://www.webpagetest.org/result/110516_QN_39f043d539e5b1603fc3b45b5df8ca48/
Looking at the waterfall, I'd say your best bet for optimization is to actually focus on the back-end page generation. Looks like it is taking a little over 600ms to construct the html on the server side. A quick trick would be to get early flushing working so you could flush out enough of the html to get the browser loading external resources while you work on the more expensive back-end calls.
RE: Google adsense on test results - D0gSoldi3r - 05-17-2011 07:12 AM
early flushing sounds like a new concept to me i've never heard of this before anywhere good i can research this :/
RE: Google adsense on test results - pmeenan - 05-17-2011 07:58 AM
Here you go: http://www.stevesouders.com/blog/2009/05/18/flushing-the-document-early/
You can also Google for "flush document early" to get more information.
RE: Google adsense on test results - D0gSoldi3r - 05-19-2011 04:36 AM
thanks for the help it was really helpful now i have a little new performance tool to learn
However after doing research into flushing they say the way to do it with php, is adding the code
<?php flush(); ?>
in my index.php page, i'm using joomla and after putting it there expecting it to work nothing happened i'm still getting the slow initial slow response that it said it would fix no difference
RE: Google adsense on test results - pmeenan - 05-19-2011 05:04 AM
In php there can be some interactions with output buffering so sometimes you need to use ob_flush() but if you're running Joomla you might want to avoid that - there could be code in the templates that are counting on the buffers not having been flushed.
What version of Joomla are you running? Have you enabled the built-in page caching mechanisms? Joomla is one of the harder CMS systems to optimize because there aren't a lot of plugins that can help (though there are a few threads around here from people working on it).
RE: Google adsense on test results - D0gSoldi3r - 05-19-2011 06:54 AM
Confused before i even start (not good) i'm using the latest version of Joomla 1.5 and i'm using the built in page caching along with a CDN called maxcdn which gzips everything for me in advance. Wish there were more performance plugins for joomla but all you get are "compress css plugins" for the performance section of joomla and only a handfull of useful plugins that do something different
i taken the
<?php flush(); ?>
off my site cause you said it may conflict with joomla.
RE: Google adsense on test results - piratos - 05-19-2011 03:41 PM
Quote:3Unable to post message to http://googleads.g.doubleclick.net. Recipient has origin http://www.funnystash.com.
Use Chrome Tools and there the console.
There 9 errors like that.