title: Uncaught Reference Error: stLight is not defined (in Chrome only)
body: <p>My web page ends thus:</p>
  
  <pre><code>&lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;var switchTo5x=false;&lt;/script&gt;
  &lt;script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  stLight.options({publisher: "ur-24e62f76-1f66-e3aa-1190-c533b729ca11", doNotHash: true, doNotCopy: true, hashAddressBar: false});
  &lt;/script&gt;
  &lt;script type="text/javascript" src="/static/bootstrap/js/bootstrap.js"&gt;&lt;/script&gt;  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>In FireFox and Safari, it behaves. In Chrome:</p>
  
  <pre><code>Uncaught ReferenceError: stLight is not defined nectar-tugg-art:229
  (anonymous function)
  </code></pre>
  
  <p>In other words, the code at w.sharethis.com/button/buttons.js has failed to execute, and hence, failed to define the stLight variable.</p>
  
  <p>The page is part of a Django web application running on a remote server. Saving the generated HTML page locally, then viewing in Chrome, works correctly.</p>
  
  <p>At this point I'm stuck. Something to do with the cross domain security model? There aren't any security exceptions.</p>
  
  <p>Some weird interaction with the other javascript files?</p>
  
  <p>The static (generated) code is <a href="https://dl.dropboxusercontent.com/u/767553/stlight-test.html" rel="noreferrer">here</a>. It won't run from Dropbox though.</p>