C
Catherine Lynn Smith
I am trying to figure out the recommended way to include javascript
'from' javascript. I found some references that say to just write a
'script' tag to the document, but I am curious about the parse order
for this.
i.e., if I have a 'core set' of routines that I prefer to store in a
seperate file due to the fact they are used in multiple pages, it
makes more sense to call them in from the javascript that needs them,
but if I do so with a 'write' to the document, are they parsed before
any additional code in the existing .js file?
The idea being - since these would be core functionality routine
libraries, the page-specific code I include via the HTML will need to
have any subroutines and functions available to work properly.
Any help and comments are greaty appreciated.
KL
'from' javascript. I found some references that say to just write a
'script' tag to the document, but I am curious about the parse order
for this.
i.e., if I have a 'core set' of routines that I prefer to store in a
seperate file due to the fact they are used in multiple pages, it
makes more sense to call them in from the javascript that needs them,
but if I do so with a 'write' to the document, are they parsed before
any additional code in the existing .js file?
The idea being - since these would be core functionality routine
libraries, the page-specific code I include via the HTML will need to
have any subroutines and functions available to work properly.
Any help and comments are greaty appreciated.
KL