Re: Scripting Techniques first draft

Yvette P. Hoitink wrote:

> Personally, I have found document.write a very useful technique in creating
> accessible websites that transform gracefully. If I create additional
> features in a website that require Javascript, I always make sure to
> document.write them. 

I agree the idea is sound - using Javascript to insert
javascript enhancements, although I suggest that using DOM
inserts is a better approach, especially since it can be done at
any time, not just during the loading of a document.

I recall Robert Scoble
<url:http://radio.weblogs.com/0001011/2004/08/21.html#a8127> had
a substantial loading overhead because of the document.write.
Mainly because of one slow function that was called repeatedly.
Using DOM, this can be done after the page load, and added to
the page when the content becomes available, so not preventing
the user from seeing past the function call.


Mike.

Received on Monday, 13 September 2004 19:20:47 UTC