I am calling a JS file with a <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.