W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2000

RE: Interesting thought

From: Pravin Goel <pgoel@peoplemoverinc.com>
Date: Wed, 1 Mar 2000 10:40:15 -0800
Message-ID: <77FB1FD98CC4D31183D300C04F1099D3031041@MALONE>
To: www-dom@w3.org
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
>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

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:06 UTC