E
Ed Brandmark
I have a tag of the form
<SCRIPT LANGUAGE="JavaScript1.1" SRC="foo.js".....
and was wondering if this delays the loading of my page until that
file foo.js downloads.
It seems that if I place this in the HEAD of my document - the page
will wait until it downloads.
If I place it in the BODY of my document - supposedly the page
continues loading.
But what happens if
a) a document.write occurs (is the content pushed around)?
b) a function is called in the page that is defined in the .js file?
Does it then wait?
c) some say that the .js file is scanned for document.writes - but how
is this possible if it doesn't delay the page waiting for the .js
file?
This information will help me plan my site in order to make it as
efficient as possible. I am interested in how all the browsers (both
IE and Netscape including versions back to 4.0) work.
Thanks
Ed
<SCRIPT LANGUAGE="JavaScript1.1" SRC="foo.js".....
and was wondering if this delays the loading of my page until that
file foo.js downloads.
It seems that if I place this in the HEAD of my document - the page
will wait until it downloads.
If I place it in the BODY of my document - supposedly the page
continues loading.
But what happens if
a) a document.write occurs (is the content pushed around)?
b) a function is called in the page that is defined in the .js file?
Does it then wait?
c) some say that the .js file is scanned for document.writes - but how
is this possible if it doesn't delay the page waiting for the .js
file?
This information will help me plan my site in order to make it as
efficient as possible. I am interested in how all the browsers (both
IE and Netscape including versions back to 4.0) work.
Thanks
Ed