title: Javascript plugins not working properly with turbolinks
body: <p>I'm using share buttons (javascript plugins). When I open a page it shows that buttons, but when I open other page it disappear. It appear again when i refresh website. It working properly with jquery.turbolinks and without turbolinks gem, but without it website is very slow. How to make website faster?
  My <a href="http://www.philsart23.uk/" rel="nofollow noreferrer">website</a>, now plugins is working, because I removed turbolinks.</p>
  
  <p><strong>application.js</strong></p>
  
  <pre><code>//= require jquery
  //= require jquery.turbolinks
  //= require jquery_ujs
  //= require lightbox
  //= require_tree .
  //= require turbolinks
  </code></pre>
  
  <p><strong>application.html.erb</strong> javascript plugins</p>
  
  <pre><code>&lt;script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-588e44a9401a6d9f"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" id="st_insights_js" src="http://w.sharethis.com/button/buttons.js?publisher=630cdfb3-b6c5-4da7-a389-1c7d5340827d"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;stLight.options({publisher: "630cdfb3-b6c5-4da7-a389-1c7d5340827d", doNotHash: false, doNotCopy: false, hashAddressBar: false});&lt;/script&gt;
  </code></pre>
  
  <p><strong>Gemfile</strong></p>
  
  <pre><code>gem 'jquery-turbolinks'
  gem 'turbolinks', '~&gt; 5.0.1'
  </code></pre>
  
  <p>I tried to add one plugin in javascript file, but result same</p>
  
  <pre><code>$(document).on('turbolinks:load', function(){
    stLight.options({publisher: "630cdfb3-b6c5-4da7-a389-1c7d5340827d",      doNotHash: false, doNotCopy: false, hashAddressBar: false});
  });
  </code></pre>