Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 932 | Replies: 3
•
•
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 11,067
Reputation:
Rep Power: 33
Solved Threads: 118
I am calling a JS file with a
The thing is, there is one function in the file that needs a query parameter, and I therefore must pass it to the file, making the file not really cachable.
Should I split this function out into its own JS file? This would allow the majority of my JS code to be cached, but the downside would be the browser client would need to establish a connection with two separate JS files instead of just one.
Thinking about performance here.
<script src=...> tag in the header. It's a rather large file.The thing is, there is one function in the file that needs a query parameter, and I therefore must pass it to the file, making the file not really cachable.
Should I split this function out into its own JS file? This would allow the majority of my JS code to be cached, but the downside would be the browser client would need to establish a connection with two separate JS files instead of just one.
Thinking about performance here.
Dani the Computer Science Gal
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)







Threaded Mode