<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Google ads: How to lose the wait</title>
	<atom:link href="http://billauer.se/blog/2009/05/google-ads-wait-speed-load-appendchild/feed/" rel="self" type="application/rss+xml" />
	<link>https://billauer.se/blog/2009/05/google-ads-wait-speed-load-appendchild/</link>
	<description>Anything I found worthy to write down.</description>
	<lastBuildDate>Thu, 26 Mar 2026 13:15:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: Worthy Christian News</title>
		<link>https://billauer.se/blog/2009/05/google-ads-wait-speed-load-appendchild/comment-page-1/#comment-566</link>
		<dc:creator>Worthy Christian News</dc:creator>
		<pubDate>Tue, 26 Jul 2011 09:32:55 +0000</pubDate>
		<guid isPermaLink="false">https://billauer.se/blog/?p=233#comment-566</guid>
		<description>I&#039;m trying to push ads up into my page, by using javascript and it works on every browser -- except now it doesn&#039;t work with IE9.  I&#039;m still looking for a solution.  If you have one, can you post it?  

Thanks!</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to push ads up into my page, by using javascript and it works on every browser &#8212; except now it doesn&#8217;t work with IE9.  I&#8217;m still looking for a solution.  If you have one, can you post it?  </p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reuben</title>
		<link>https://billauer.se/blog/2009/05/google-ads-wait-speed-load-appendchild/comment-page-1/#comment-400</link>
		<dc:creator>Reuben</dc:creator>
		<pubDate>Tue, 16 Mar 2010 20:23:03 +0000</pubDate>
		<guid isPermaLink="false">https://billauer.se/blog/?p=233#comment-400</guid>
		<description>I know some javascript libraries like prototype have a method update() that can be called like this $(&#039;my-div&#039;).update(newhtml), which actually runs any javascript in the html you&#039;ve added.  This makes me believe it&#039;s possible to do this in a cross-browser way.

That said, I&#039;ve read others that say this doesn&#039;t work for Google&#039;s ads because they use document.write, which blanks the page if you use the call after the DOM ready event.  It&#039;d be interesting to experiment a bit to see if this could work though.</description>
		<content:encoded><![CDATA[<p>I know some javascript libraries like prototype have a method update() that can be called like this $(&#8216;my-div&#8217;).update(newhtml), which actually runs any javascript in the html you&#8217;ve added.  This makes me believe it&#8217;s possible to do this in a cross-browser way.</p>
<p>That said, I&#8217;ve read others that say this doesn&#8217;t work for Google&#8217;s ads because they use document.write, which blanks the page if you use the call after the DOM ready event.  It&#8217;d be interesting to experiment a bit to see if this could work though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eli</title>
		<link>https://billauer.se/blog/2009/05/google-ads-wait-speed-load-appendchild/comment-page-1/#comment-399</link>
		<dc:creator>eli</dc:creator>
		<pubDate>Sat, 13 Mar 2010 00:16:11 +0000</pubDate>
		<guid isPermaLink="false">https://billauer.se/blog/?p=233#comment-399</guid>
		<description>About the innerHTML thing: I wouldn&#039;t try to &quot;move&quot; the innerHTML data, because this data is maybe manipulated as the script runs. In fact, you copy the data and then delete it, and it&#039;s not really clear to me whether what happens if there&#039;s a script inside. And so on.

But that gave me a completely different idea, which I don&#039;t know why I didn&#039;t try: What happens if the Google ads snippet is injected into the document in the right place through its innerHTML? Will it execute? If it can be assured to execute, then all will be nice. After some googling, it seems like this solution will not work well across different browsers. IE9 has been mentioned as not running scripts injected by innerHTML.

Insights, anyone?</description>
		<content:encoded><![CDATA[<p>About the innerHTML thing: I wouldn&#8217;t try to &#8220;move&#8221; the innerHTML data, because this data is maybe manipulated as the script runs. In fact, you copy the data and then delete it, and it&#8217;s not really clear to me whether what happens if there&#8217;s a script inside. And so on.</p>
<p>But that gave me a completely different idea, which I don&#8217;t know why I didn&#8217;t try: What happens if the Google ads snippet is injected into the document in the right place through its innerHTML? Will it execute? If it can be assured to execute, then all will be nice. After some googling, it seems like this solution will not work well across different browsers. IE9 has been mentioned as not running scripts injected by innerHTML.</p>
<p>Insights, anyone?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reuben</title>
		<link>https://billauer.se/blog/2009/05/google-ads-wait-speed-load-appendchild/comment-page-1/#comment-398</link>
		<dc:creator>Reuben</dc:creator>
		<pubDate>Fri, 12 Mar 2010 23:48:10 +0000</pubDate>
		<guid isPermaLink="false">https://billauer.se/blog/?p=233#comment-398</guid>
		<description>I&#039;m testing this out too, by the way, and I&#039;m concerned that Google might load different ads depending on where you load the ads in the page.  Does anyone know if Google does this?  It seems like something they would consider.</description>
		<content:encoded><![CDATA[<p>I&#8217;m testing this out too, by the way, and I&#8217;m concerned that Google might load different ads depending on where you load the ads in the page.  Does anyone know if Google does this?  It seems like something they would consider.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reuben</title>
		<link>https://billauer.se/blog/2009/05/google-ads-wait-speed-load-appendchild/comment-page-1/#comment-397</link>
		<dc:creator>Reuben</dc:creator>
		<pubDate>Fri, 12 Mar 2010 23:45:41 +0000</pubDate>
		<guid isPermaLink="false">https://billauer.se/blog/?p=233#comment-397</guid>
		<description>Is there a case where it wouldn&#039;t work to move around the innerHTML of a div instead of the actual DOM node?  For instance, in your simple example above, would this work for all browsers too?


var node = document.getElementById(&quot;node&quot;);
alert(&quot;Now swapping&quot;);
document.getElementById(&quot;taker&quot;).innerHTML = node.innerHTML;
node.innerHTML = &#039;&#039;;
</description>
		<content:encoded><![CDATA[<p>Is there a case where it wouldn&#8217;t work to move around the innerHTML of a div instead of the actual DOM node?  For instance, in your simple example above, would this work for all browsers too?</p>
<p>var node = document.getElementById(&#8220;node&#8221;);<br />
alert(&#8220;Now swapping&#8221;);<br />
document.getElementById(&#8220;taker&#8221;).innerHTML = node.innerHTML;<br />
node.innerHTML = &#8221;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eli</title>
		<link>https://billauer.se/blog/2009/05/google-ads-wait-speed-load-appendchild/comment-page-1/#comment-377</link>
		<dc:creator>eli</dc:creator>
		<pubDate>Mon, 25 Jan 2010 11:37:14 +0000</pubDate>
		<guid isPermaLink="false">https://billauer.se/blog/?p=233#comment-377</guid>
		<description>This is not really relevant to my post, but after googling around a bit it seems to me that it&#039;s a false alarm from your specific software, and that it will be fixed soon (whatever &quot;soon&quot; means)</description>
		<content:encoded><![CDATA[<p>This is not really relevant to my post, but after googling around a bit it seems to me that it&#8217;s a false alarm from your specific software, and that it will be fixed soon (whatever &#8220;soon&#8221; means)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Radu</title>
		<link>https://billauer.se/blog/2009/05/google-ads-wait-speed-load-appendchild/comment-page-1/#comment-376</link>
		<dc:creator>Radu</dc:creator>
		<pubDate>Mon, 25 Jan 2010 06:45:23 +0000</pubDate>
		<guid isPermaLink="false">https://billauer.se/blog/?p=233#comment-376</guid>
		<description>Hi

I get this warning from kaspersky saying that
i have a trojan and the object of it is: pagead2.googlesyndication.com/pagead/show_ads.js//show_ads Firefox also it keeps warning me but then after it blocks it.To give you the full thing...

24/01/2010 9:59:54 PM	Detected: Trojan.JS.Redirector.ar	http://pagead2.googlesyndication.com/pagead/show_ads.js//show_ads		Firefox		


What next... the antivirus keeps pooping out every 5 minutes,</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>I get this warning from kaspersky saying that<br />
i have a trojan and the object of it is: pagead2.googlesyndication.com/pagead/show_ads.js//show_ads Firefox also it keeps warning me but then after it blocks it.To give you the full thing&#8230;</p>
<p>24/01/2010 9:59:54 PM	Detected: Trojan.JS.Redirector.ar	<a href="http://pagead2.googlesyndication.com/pagead/show_ads.js//show_ads" rel="nofollow">http://pagead2.googlesyndication.com/pagead/show_ads.js//show_ads</a>		Firefox		</p>
<p>What next&#8230; the antivirus keeps pooping out every 5 minutes,</p>
]]></content:encoded>
	</item>
</channel>
</rss>
