title: What's the simplest <script> tag with params
body: <p>I want to include a script tag, while providing a parameter to it. This is what I came up with so far</p>
  
  <ol>
  <li><p>Provide a parameter to script URL (cons: generate multiple JS files)</p>
  
  <pre><code>&lt;script src="http://example.com/something.js?P=123" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre></li>
  <li><p>Hide parameter in script tag (cons: same as #1)</p>
  
  <pre><code>&lt;script src="http://example.com/scripts/123/something.js" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre></li>
  <li><p>Google Analytics way (cons: ugly, complicated, global variables)</p>
  
  <pre><code>&lt;script type="text/javascript" charset="utf-8"&gt;
    var _something = _something || 123;
    (function() {
      var s = document.createElement('script');
      s.type = 'text/javascript';
      s.src = 'http://example.com/something.js';
      var ss = document.getElementsByTagName('script')[0];
      ss.parentNode.insertBefore(s, ss);
    })();
  &lt;/script&gt;
  </code></pre></li>
  </ol>