开发者

Problem with javascript in firefox when moving google ads

开发者 https://www.devze.com 2022-12-26 00:33 出处:网络
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) sh

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/开发者_如何学Pythonads.html ) [forgot: it's only the text ads that don't show. when google delivers banners/graphics or suchlike, it works. thus, to see the code fail at the given url, you might need to reload the page several times...]

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


This didn't work for me in FF either, however when I disable the AdBlockPlus extension it does & I can see 2 banners.

(Its matching the filter "||googleadservices.com^$third-party")


here is a working version incase someone else needs stuff like that.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号