I successfully fetch the script using
$( document ).ready(function() {
$.getScript("http://example.org/script.js");
});
However, it always sends empty referrer to example.org. My question is, what is the correct approach to send the referrer when using that function in a programmatic way ?