I have a script that uses $.get( ... ) to pull a piece of HTML from my server, and render it inside a $.html. Sometim
When jQuery sees a <script src="URL"> tag in the HTML, it uses $.getScript() internally to load the script. By default, this sends a cachebuster, but you can override the default AJAX options by calling $.ajaxSetup().
$(document).ready(function () {
$.ajaxSetup({
cache: true
});
var x = '<script src="https://d9zdvmiwibsh5.cloudfront.net/js/json.js">';
$('#test').html(x);
});
DEMO