Forum Moderators: martinibuster

Message Too Old, No Replies

Ads 'flicker' when page is loaded

Ads and referral button flicker when the page is loaded or refreshed. Why?

         

GranoSalis

9:32 am on Nov 22, 2005 (gmt 0)

10+ Year Member



I am at present redesigning my site, but have found that in the new layout, when a page is loaded my ads and referral buttons give a 'flickering' effect, going up and down very quickly until the page is fully loaded, when they settle in their proper position.
This only seems to happen in Firefox (not IE, Opera or Netscape...)
It is very unsightly and I don't know how to fix it!
I hope somebody can help...
Thanks in advance :-)

Thez

9:48 am on Nov 22, 2005 (gmt 0)

10+ Year Member



Now this is just pure speculation, but I think unlike IE and others, Firefox renders the page as it gets the source, instead of waiting for "complete blocks". Many times when I load my index page, it also "flickers" and then settles to the final version.

deepesh

10:09 am on Nov 22, 2005 (gmt 0)

10+ Year Member



Yeah! this is due to the fact that firefox displays the page as data is fetched from the server, I guess one possible way to overcome this is to use the 'Table-trick for adsense' (google it), which will allow you to control what is loaded first - content or the Adblock.

GranoSalis

10:31 am on Nov 23, 2005 (gmt 0)

10+ Year Member



Thanks, I'll try that :-)

GranoSalis

6:02 am on Nov 25, 2005 (gmt 0)

10+ Year Member



In the end, I fixed it by enclosing it in a <div> and positioning it absolutely. Don't know why that worked, but it did and that's enough for me ;-)

I couldn't use the table trick because I don't use tables for my layout. I use a mix of floated and absolutely positioned divs.

krod

3:02 pm on Nov 25, 2005 (gmt 0)

10+ Year Member



Style sheet seem to have a weird affect on both YPN! and adsence.

GranoSalis

8:53 pm on Nov 25, 2005 (gmt 0)

10+ Year Member



I think it's more likely to be the lack of tables that screw it up.
I mean, the number is increasing now, but there still aren't very many site that don't use a table layout.

jetteroheller

10:07 pm on Nov 25, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Check for onEvent Javascripts causing the AdSense code to reload.

I had once a problem with a Javascript using innerHTML, causing the effect, You described.

Knappster

11:15 pm on Nov 25, 2005 (gmt 0)

10+ Year Member



Just enclosing the code in <div> tags with no style applied usually fixes this problem. Don't ask me why.

GranoSalis

1:45 am on Nov 26, 2005 (gmt 0)

10+ Year Member



Thanks all for your help, but unfortunately placing in unstyled divs didn't work, and neither did taking out all my onLoad"..." functions from my <body> tag.
Oh well, I'll just be content that placing in a absolutely positioned div fixed it!

my44

3:20 am on Nov 26, 2005 (gmt 0)

10+ Year Member



I notice this happens a lot when loading a blog site. I think it is due to the scripting then. Since I'm doing mostly pure HTML, I have never seen such thing on my sites.