RE: Interesting thought

i found my solution-one has to use defer attribute in script tag.

-----Original Message-----
From: keshlam@us.ibm.com [mailto:keshlam@us.ibm.com]
Sent: Tuesday, February 29, 2000 2:21 PM
To: www-dom@w3.org
Cc: www-dom@w3.org
Subject: RE: Interesting thought


>the problem is that the browser(at least IE) scans all imported javascript
>code for finding syntax errors at the load time. this elongates the load
>time unnecessarily. if the code is commented at load time, the page loads
so
>much faster

I think you're going to have to take that up with IE. As I said, the DOM
considers the javascript to just be string content within the document. You
could probably write something that would process those strings to find and
strip out the comments, but I don't know if your browser would then
reprocess them and discover the Javascript.

______________________________________
Joe Kesselman  / IBM Research

Received on Wednesday, 1 March 2000 13:42:05 UTC