Adding this js to my page:
$("#divExample").append("<script type='text\/javascript' src='\/scripts\/test_code.js'><\/script>");
Causes a request to:
http://.../scripts/test_code.js?_=1395691742415
I need to eliminate the query string as it is preventing the js file from being cached. My best guess is that this is in some way connected to jQuery ajax, which appends the same style of querystring when doing certain types of call (e.g. jsonp).
Background on why I'm doing this: I need to push off the script load (which is actually a part of a larger js block) until after the page ready event has completed. The above is just a cut down sample which shows the same symptoms.
Currently using jQuery 1.8.3 but I really hope the answer doesn't include upgrading since that will mess with dependencies.