L
Lars Netzel
Hi,
I have an aspx page with about 2000 rows of javascript code before the Body
TAG. This is starting to get so much that it's affecting the Loading time on
the client for the page and I'm thinking about hwo to make this go faster.
Besides cutting in the Javascript code and removing "//" Remarks and using
very Short Variable names and stuff I don't really know what to do.
What if I would to put the Javascript oin a separate JS file, would that
affect the loading in anyway? I guess the page has to request that JS file
then but does it have to request the whole page only the function in the
actually Runtime when calling the function?
Is it also possible to force the JS file to be Cached on the Client? or
would it be by default since the JS file will very seldom change.
Please help
best regards
/Lars
I have an aspx page with about 2000 rows of javascript code before the Body
TAG. This is starting to get so much that it's affecting the Loading time on
the client for the page and I'm thinking about hwo to make this go faster.
Besides cutting in the Javascript code and removing "//" Remarks and using
very Short Variable names and stuff I don't really know what to do.
What if I would to put the Javascript oin a separate JS file, would that
affect the loading in anyway? I guess the page has to request that JS file
then but does it have to request the whole page only the function in the
actually Runtime when calling the function?
Is it also possible to force the JS file to be Cached on the Client? or
would it be by default since the JS file will very seldom change.
Please help
best regards
/Lars