title: Does it make a difference how I get the user to load a script into a webpage?
body: <p>I know this is very small and maybe not even worth taking the time to consider or change, but I'm still interested (also maybe this is significant for bigger files). I am injecting one of several JS scripts into my webpage, based on a HTTP get parameter: the server (PHP) looks at the parameter's value and loads the corresponding script. My question is, is there, hypothetically, any difference between doing this:</p>
  
  <pre><code>&lt;script type="text/javascript" src="&lt;?php echo getScriptLocation($_GET["foo"]); ?&gt;"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>and this:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  &lt;?php echo getScript($_GET["foo"]);
  &lt;/script&gt;
  </code></pre>
  
  <p>?</p>
  
  <p>That is, is there any perceived difference for the client based on whether I send them the script, or the script's location?</p>