PDA

View Full Version : AdSense and forum slowdown



GrendelKhan{TSU}
08-01-2006, 07:01 AM
this is clip from trillianjedi.. a regular to a forum I am a regular at:
the question has plagued me for a while so I thought I'd post it here to see if anyone else had any thoughts on this.



I have had a few users complain over the last year or two that the AdSense ads on pages of one of my sites in particular cause the page load times to be "quite dramatically" slowed.
I experienced this myself when there seemed to be some intermittent Google server outages yesterday. I now fully understand what these users are trying to explain to me.

What can be done about this? I've been giving it some thought and can't really get beyond about three possibilities that might actually work.

1. Source ordered content

Pull the AdSense code last and position with appropriate CSS DIV markup. I'm not sure that's all easy in my particular case as I'm using a full float CSS layout already which is probably pushing the margins of what is currently possible. I don't know that it would stand any additional complexity.

2. iFrames

I'm not sure that this would work as mediabot would then be crawling a blank page URL? Is it possible to call the AdSense code inside the main page but direct output to an iFrame?

3. DHTML

Something I've been playing around with recently. This would work in the same was as source ordered content, but the DIV's would actually be referenced in their natural place in the source, and the AdSense code pushed into that space when it's loaded.

I don't know if that's workable? As far as I can ascertain, there is no hook into an OnLoad event that could be tapped into?

What would be nice here, although again I'm just not sure if it's possible, would be to use the Body.OnLoad event so that the AdSense code is not called until the page has finished loading, then it's all called at once and shoved into the appropriate DIV slots.

Anyone here playing with this or have a succesful working solution?



for me.. I think the SOC solution is best as I found out years ago that SOC improves the user experience and also makes for a nice clean indexing. But for forums... ugh.... I'm a bit fishoutta water but I KNOW its effected performance. . eg: I'm not sure how to implement it (css noob) without messing up the layout.

how would one set of adsense underneath the nav bar to be is source-ordered at the foot of the page, but also have AS inserted into forum threads, which are table based.

Is there any way that I can have the forum AS code at the foot of the page, but shove it into a DIV inside a table residing above it? Consider if my post here had AdSense just below it.

ugh so many questions...but point is...
How to get AS into forums (wherever it is you choose) without taking the performance hit (esp. when google server outageses)

how to implement a SOC method for adsense with vbulletin forums?

inquiring minds.

WoodiE55
08-01-2006, 08:17 AM
Are you sure it's google adsense that's slowing down your forum? I've been running adsense, usually 2-3 per page on my forums and haven't noticed any kind of slow down.



-Michael

mattyk72
08-01-2006, 09:03 AM
I've never noticed a slowdown even with 3 ads running.

GrendelKhan{TSU}
08-01-2006, 10:34 AM
definitely sure. there is a lot of documentation about this. its a combo javascript and google thing ( but esp. with google flare ups.) note, this not only pertains to AdSense. Any third party JavaScript that makes a call off site is going to cause issues with your page performance.

its not always, but it'll happen. javascript can problematic with performance in itself...in adsense case, the moment the AdSense JS file is executed the page load will stall waiting on Google, not your server. so obviously if google is acting up ...so will yoru ads. if you have them set to load before your page.... :/
grind. grrind. griiind

many make it so AdSense code sits right before the closing </body> tag. Right where it should be. I just don't how to make it so. :(

aside:
Source Ordered Content is a basic SEO tactic employed as a means of putting important content at the top of the page source, less important content/fluff at the bottom of the page source, and using CSS to direct DIV positioning to the browser. and FTR, this is also a tactic that can improve accessability, not just SEO

thus, for forums google adsense and well...any javascript SHOULD go at the bottom. unforutnatly most hacks are not written with this in mind since as of yet, most hack devs don't think about SEO. I'm no developer so only end up muckin things up when I try it. so that's why I'm asking here. :)
(this could go into in SEO section but the adsense and java is the main issue here so...).

if you don't believe me...do some regular web searches about SOC as an SEO method and javascript affecting forum performance. if you still don't believe me...

well...then if I could just get help on how to get javascript called last on any vb page...that'd be awesome. better safe than sorry. :p