Suppose I have:
And suppose that both scriptA and scriptB require functions that are in common.js Instead of copy-pasting common.js in both files, I would like to send a concatenation of common+scriptA and common+scriptB as needed.
I don't want to do $.getScript(...
because that would cause another request for getting the script.
How do I do this? Is there a better way!?