title: Sending variable to $.getScript
body: <p>Is it possible to send a variable to the script loaded using <code>$.getScript</code>?</p>
  
  <p>At the moment I have:</p>
  
  <pre><code>$.getScript( "js/my_script.js", function() {
  // do something here after script has loaded
  });
  </code></pre>
  
  <p>But I want to send a variable to the loaded script.  Is this possible, if yes, how?</p>
  
  <p>For example</p>
  
  <pre><code>// this is a variable set outside of the script loaded via `$.getScript`
  var my_variable = 1
  
  // how do I get that variable sent to `my_script.js`
  $.getScript( "my_script.js", function() {
  // do something here after script has loaded
  });
  </code></pre>