Forum Moderators: martinibuster

Message Too Old, No Replies

Adsense ads Make My Site Slow - Only for me

         

jonpoh

2:52 pm on Jun 1, 2008 (gmt 0)

10+ Year Member



Not sure why this is happening, wonder if anyone can shed some light. I am on a Mac with Safari and FireFox. Site loads fine for others on PC's and loaded fine for me until I added the adsense code, now its really slow for me but loads fine for everyone else. If I remove the adsense code it speeds right back up to normal.

Sometimes it takes so long the ads never load an
I get a gateway timeout error.

I just tested it and it took 75 seconds to load the page and only 1 of 2 ads showed (I have a FIOS connection, page normally loads in 1- 2 seconds.)

Anyway for me to avoid this. It makes it very hard for me to use my own sites.

Jonpoh

fredw

5:48 pm on Jun 1, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is it possible you have a non-standard entry in your hosts file that is related to one or several Google domains? It's conceivable an incorrect DNS entry could still work but be really slow.

Or, perhaps, its a DNS problem on "your end" (your local network/ISP, etc) and manually adding an entry for the Google ad code server(s) to your hosts file would bypass the slowness.

These things happen. For some unknown reason, I couldn't look at pages from the BBC at work until I added them to my hosts file.

fredw

6:01 pm on Jun 1, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



BTW, according to docs.info.apple.com, in Mac OS X 10.2 and later, the hosts file can be found at:

/private/etc/hosts

vordmeister

6:24 pm on Jun 1, 2008 (gmt 0)

10+ Year Member Top Contributors Of The Month



It's well worth putting adsense code into absolutely positioned CSS, or at least some CSS that loads after your page content. Can limit your options on where to put it but your pages would load even if the adsense servers failed to respond.

Never rely on another website to respond in order for your web page to load.

jonpoh

12:29 am on Jun 2, 2008 (gmt 0)

10+ Year Member



Good Info I will look at all of those issues. Thanks for the help.

bumpski

10:01 am on Jun 7, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's well worth putting adsense code into absolutely positioned CSS, or at least some CSS that loads after your page content. Can limit your options on where to put it but your pages would load even if the adsense servers failed to respond.

Never rely on another website to respond in order for your web page to load.

Unfortunately the AdSense javascript will prevent your webpage from rendering until it is delivered by the AdSense pagead2 servers. But fortunately, the javascript is probably already stored in the entire world's web browser caches.

vordmeister

10:27 am on Jun 7, 2008 (gmt 0)

10+ Year Member Top Contributors Of The Month



Unfortunately the AdSense javascript will prevent your webpage from rendering until it is delivered by the AdSense pagead2 servers.

Only if the rest of the page relies on that information before it can load. Try messing around with a JavaScript include of your own with a time delay in it. See what happens when you put it at the start of the page code, at the end, in a table, outside a table, or in absolutely positioned CSS.

It'll probably be browser specific (JavaScript is browser side) but modern browsers are generally clever enough these days.