| | |
IFRAME or JavaScript?
Please support our Advertising Sales Strategies advertiser: Get a Free Online Advertising Analysis!
![]() |
When using a third party ad server, do you use the IFRAME or JavaScript method? Usually the JS method is more robust and offers more features, but it can slow down page rendering times. Currently struggling with this battle right now.
Well with JavaScript, it is loaded inline with the rest of the site. So lets say you have a banner near the top of the page. If the ad server is slow, the rest of your site gets delayed in being rendered. Even worse, if the server is having a problem connecting, your site will just show whitespace and never finish loading below the ad placement. On the other hand, with IFRAMES, your entire site gets loaded first, and then the ads.
This whole conversation is completely SEO-irrelevant because they're ads ... either way you're making a call to an ad server. Well that's my question ... how can I make the JavaScript the last thing I run on the page, when it includes
How can I use AJAX? No experience there.
But interested!
document.write() statements? For example, take the Google AdSense code ... you put it wherever you want AdSense to appear. What if that is near the top of the page? If Google's server is lagging, the rest of your site doesn't get loaded.How can I use AJAX? No experience there.
But interested! •
•
Join Date: Dec 2004
Posts: 1,655
Reputation:
Solved Threads: 35
You shouldn't be using code that contains document.write() statements. That's deprecated and may or may not work based upon doctype.
I haven't looked at Google Adsense code since... nevermind. Awhile. And since it's being provided, you might be break all sorts of rules if you modified it.
In general, you'd have a div where you wanted the ad. You'd have a script to retrieve the ad image/link code. You'd place that script at the very bottom of your page. Then you'd have a script after that, which alters the content of the div, placing the ad within it.
If their code uses document.write(), though, that approach wouldn't work.
I haven't looked at Google Adsense code since... nevermind. Awhile. And since it's being provided, you might be break all sorts of rules if you modified it.
In general, you'd have a div where you wanted the ad. You'd have a script to retrieve the ad image/link code. You'd place that script at the very bottom of your page. Then you'd have a script after that, which alters the content of the div, placing the ad within it.
If their code uses document.write(), though, that approach wouldn't work.
![]() |
Similar Threads
- Delay JavaScript execution (JavaScript / DHTML / AJAX)
- comments... suggestions... (Website Reviews)
Other Threads in the Advertising Sales Strategies Forum
- Previous Thread: Banners for branding
- Next Thread: Google link bar
| Thread Tools | Search this Thread |
accounting adspostjobs advertising advertisingspend applicationreengineering blackberry book brand broadband broadcasting bt budgets business cfo cheapwebsite coupons death digg directtv doubleclick downloads echostar emailmarketing emailsegmentation excel foreclosures forrester funding gartner google googleadsensesetup homesales isp law microsoft monetisation music neisen news nielsen nokia oil olympics onlineads onlineadspending onlineadvertising outsourcing phorm ppc privacy programming recession retailsales richmedia richmediaads sales saleslistsonline siriusxm snoop socialadvertising2.0 software softwaredevelopment spy standards steveballmer stocks strategyforadsenserevenu streaming survey systemintegration technology tv uk verizon web websiteforgoogleadsense wikipedia yahoo! youtube






