I'm planning to start an Ad Network from Scratch and I'm studying the market and also I'm trying to find out best ways to deal with the existing issues. I already know google users some code like below to generate the ad contents for the uses using javascript.
(As @crazimoin answered in my previous question)
document.write('<iframe src="http://myadserver.com/showads.php?ad_client='+ ad_client+'&ad_slot='+ad_slot+' margin=0 frameborder=0 scrolling=no allowtransparency=true ></iframe>');
I want to know these things.
- Does it slower than using innerhtml method ?
- If it is slower than innerhtml is it good to use innerhtml to generate the ad content for the publishers.
- Is there any better way to do this with JQuery without losing the performance ?
- Do these methods allow me to generate responsive ad content for the users ?
(To make them responsive I hope I can use bootstrap or my own css)
Update: I came to know that innerhtml is faster than DOM methods according to this benchmarks of DOM and Innerhtml