<feed xmlns="http://www.w3.org/2005/Atom" xmlns:foaf="http://xmlns.com/foaf/0.1/"><title>norman.walsh.name: Comments on /2006/01/05/linksAndAnnotations</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2006/01/05/linksAndAnnotations"/><id>http://norman.walsh.name/2006/01/05/linksAndAnnotations/comments.atom</id><updated>2012-05-23T10:54:39.351276Z</updated><entry><title>Comment 1 on /2006/01/05/linksAndAnnotations</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2006/01/05/linksAndAnnotations#comment0001"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0001</id><published>2006-01-05T18:52:00Z</published><updated>2006-01-05T18:52:00Z</updated><author><name>Carey Evans</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>If modifying the document is the slowest part, you could try adding all the links to a temporary document fragment, then adding that to the document.</p>
  </div></content></entry><entry><title>Comment 2 on /2006/01/05/linksAndAnnotations</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2006/01/05/linksAndAnnotations#comment0002"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0002</id><published>2006-01-05T22:22:07Z</published><updated>2006-01-05T22:22:07Z</updated><author><name>Norman Walsh</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>Good idea, Carey! Alas, while it might be marginally faster, it's definitely still way too slow. It appears that the implementation of appendChild() with a document fragment is to iterate over the nodes in the fragment, adding each one :-(</p>
  </div></content></entry><entry><title>Comment 3 on /2006/01/05/linksAndAnnotations</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2006/01/05/linksAndAnnotations#comment0003"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0003</id><published>2006-01-06T16:17:40Z</published><updated>2006-01-06T16:17:40Z</updated><author><name>Rahul</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>According to <a rel="nofollow" href="http://www.quirksmode.org/">PPK</a>'s benchmarks, <a rel="nofollow" href="http://www.quirksmode.org/dom/innerhtml.html">innerHTML is thrice as fast as the DOM in Mozilla</a>. Maybe you could try that to add the links. (You may have heard it <a rel="nofollow" href="http://www.quirksmode.org/dom/tests/innerhtmltest.xhtml">didn't work in XHTML pages</a>, but that's been <a rel="nofollow" href="http://annevankesteren.nl/2005/05/innerhtml">fixed in Firefox 1.5</a>.)
</p>
    <p>
As for asynchrony, there's always <a rel="nofollow" href="http://developer.mozilla.org/en/docs/DOM:window.setTimeout">
	<code>window.setTimeout()</code>
      </a>. Though it's unlikely an extension would notice links added to the page <em>after</em> it's done loading, unless the author specifically expected such a thing to happen.
</p>
    <p>
(P.S. Along with the article itself, could you also show the previous comments as well in the comment editing page? Oh, and the cmSiteNavigation link and the images are broken here, though they're OK in the original article, and most other URLs are fine here as well... That's strange.)</p>
  </div></content></entry><entry><title>Comment 4 on /2006/01/05/linksAndAnnotations</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2006/01/05/linksAndAnnotations#comment0004"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0004</id><published>2006-01-06T16:55:31Z</published><updated>2006-01-06T16:55:31Z</updated><author><name>Norman Walsh</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>Thanks, Rahul, I'll take a look when I can.
</p>
    <p>
Regarding your P.S.: No. The way the essay that you're commenting on is displayed on the comments page is a complete hack. I don't think there's a practical way for me to improve it. Well, I'm sure it could be done, but not easily. It's a long way down on my list of things to do :-(</p>
  </div></content></entry><entry><title>Comment 5 on /2006/01/05/linksAndAnnotations</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2006/01/05/linksAndAnnotations#comment0005"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0005</id><published>2006-01-09T18:29:53Z</published><updated>2006-01-09T18:29:53Z</updated><author><name>Norman Walsh</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
    <p>FYI: using innerHTML didn't help.</p>
  </div></content></entry></feed>

