Re: JScript download stops others?

Tech-Archive recommends: Fix windows errors by optimizing your registry




"Dave Anderson" <NYRUMTPELVWH@xxxxxxxxxxxxx> wrote in message
news:e612BCR0GHA.1304@xxxxxxxxxxxxxxxxxxxxxxx
Anthony Jones wrote:
That is strange. Events such as window onload should not fire
until all the scripts are loaded and parsed. The whole point
of defer is merely to give the user a look at the page as
early as possible, the page should not be ready for
interactive use until all the script is there.

I agree completely, though I can find little documentation from Microsoft
or
the W3C to support this.

There was an interesting discussion over at the W3C earlier this year over
whether to adopt [DOMContentLoaded], an event which would not depend on
deferred scripts, but it was clear from the context that [Load] was
supposed
to wait for all elements to load.


However it doesn't surprise me that things would slip through
on IE.

What expiry and max-age do you put on these scripts?

We don't put anything on them. Remember, this is a vendor-supplied
application. LiveHTTPHeaders tells me that expiration and max-age are not
set, but Cache-Control and Pragma are:

Cache-Control: no-cache
Pragma: no-cache


Right so round tripping to the server for each JS file generating at least
304 if not a full 200 response every time. :( Perhaps you could persuade
the vendor to do something more sensible. ;)



--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message.
Use
of this email address implies consent to these terms.




.



Relevant Pages