Problem with javascript in firefox when moving google ads

Posted by thomas woelfer on Stack Overflow See other posts from Stack Overflow or by thomas woelfer
Published on 2010-04-06T10:02:40Z Indexed on 2010/04/06 11:13 UTC
Read the original article Hit count: 421

Filed under:
|
|
|

hi.

i have a website with google ads on it. i would like to make it load faster. thus i moved all the google scripts to the bottom of the page. i also have a placeholder at the location where the ad(s) should be displayed and other divs that (initially) get the ads. finally (in window.onload) i'm moving the ads that have just be fetched from google to their target locations.

(a simple example page is here: http://www.nickles.de/temp/ads.html )

this works in ie, but it doesn't work in ff. (that is, in firefox, non-text ads show up fine, while text-ads don't. [or at least, not in a reliable way.])

any ideas what would be causing this?

Thanks! -thomas woelfer

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about google