Page is a not externally linkable
lucy24 - 1:04 pm on Nov 12, 2012 (gmt 0)
If you try both ways with a long chunk of text, you can see where the difference happens. Watch for the point when page loading seems to freeze. I think technically innerHTML takes longer, but it happens later so it doesn't interfere as much.
And of course document.write is risky because if there's a glitch and it doesn't write while the doc is still loading, then your whole document will disappear :) Better to save it for things like popups that don't have any other text to collide with.
Uhm, you do realize, don't you, that the googlebot has become awfully good at executing javascript? Not just reading it, but seeing what it does. So if you need* to hide something from the googlebot, put it in a function in a separate file, and 403 prevent robots from even looking at it.
* For, ahem, a given definition of "need".