[Javascript] downloading javascript
BEKIM BACAJ
trojani2000 at hotmail.com
Wed Jul 16 09:31:36 CDT 2003
casse1:It is possible that the jscript file is not loading at all in these
pages, may happen that you've moved these pages to another folder after
you've tested them?! In this casse, the script file is ot of the target and
can not be found. Even if the script resides in the browser chache, the
browser always checks for it in the server, so if any updated changes are
made it will downlad the newer version. If the file is not found there, the
script from the chache will not read at all.
casse2:The script TAG is placed at the end of the HTML, and the HTML is lot
shorter than the external script it will fail to initiate, but this may
happen to all external scripts because of asyncronity. No error will ocure
if the function is not called emediately after the onload event.
But sometimes it depends explicitely on the nature of the script and what's
the function call!
>From: "Bob and Sharon Hiller" <rhiller at shianet.org>
>Reply-To: "[JavaScript List]" <javascript at LaTech.edu>
>To: <javascript at LaTech.edu>
>Subject: [Javascript] downloading javascript
>Date: Sat, 12 Jul 2003 10:50:31 -0400
>
>Hello,
>
>We have hundreds of html pages that are using the same external javascript.
>We get an error on some of the pages, object not found (from the external
>javascript).
>
>When the first page is sent the external javascript should be in the users
>cache. but somehow toward the end of the html pages the external javascript
>can not be found. Can anyone shed some light on this problem? Why is the
>javascript not in the users cache at this point. If the javascript is not
>found it seems like it would be getting the code from the webserver? could
>the html on the page be so small that the javascript does not have time to
>download from the server?
>
>Questions:
>1. Why wouldn't the javascript still be in the user cache?
>2. If the javascript is not found, why isn't the script found on the
>webserver?
>3. Could the html be so small that the javascript does not have time to
>download? The javascript is 9kb.
>4. How is a page loaded? ie starts with the html and as soon as external
>import is found, downloads the javascript? when the end html is found does
>all downloads stop?
>
>
>Thanks for your help!
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus
More information about the Javascript
mailing list