Load a large Jquery file at once? : I have a question regarding the loading of Jquery files. From what I've read so far the general consensus appears to be: less script files is better, but I could not find an answer to my next question:

Say you have a script file of 4000 lines of code. Some 500 lines are only used on one specific page. Would it make sense (performance-wise) to only load this part of the script when that specific page is opened (using something like if URL == X then load {})? Or wouldn't it matter if you load the entire script just once.

Thank you all in advance for your advice