title: JS-loaded Twitter share button doesn't render properly
body: <p>In my Rails app, I have an "infinite page" that loads more blog posts as you scroll down. On each blog post, there is a twitter share button. When the page first loads, all the "above-the-fold" share buttons load great; the button appears properly, and when you click it, the custom text for the tweet appears.</p>
  
  <p>However, the share buttons that load as you scroll down don't work. When you scroll down and more blog posts load, the share button loses its styling (becomes just a plain link), and the custom text feature goes away (when you click it, it opens a blank twitter window, without the custom text).</p>
  
  <p>Even when I load all the twitter JS under each button, it still doesn't work. Here's my button code:</p>
  
  <pre><code>    %a.twitter-share-button{"data-count" =&gt; "none", "data-text" =&gt; "#{post.title} (My new blog post!)", "data-url" =&gt; "http://www.example.com", :href =&gt; "https://twitter.com/share"} Tweet
      :javascript
          !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="http://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");
  </code></pre>