title: Execute JS every time on the event of turbolinks load in Rails 5 app
body: <p>I would like to execute a few lines of js every time turbolinks is loaded(i.e, the page is loaded), not the js from cache, but would like to force run it before the event of turbolinks load, every time. Is that possible?</p>
  
  <p>I'm trying to get rid of FOUC here, by hiding the html body and doing this in app.js.coffee</p>
  
  <pre><code>$(document).on 'turbolinks:load', -&gt;
      document.body.style.visibility = 'visible'
  </code></pre>
  
  <p>But the FOUC starts kicking in after the 3rd or 4th time of reloading the page.</p>
  
  <p>To see this live in action, <a href="http://goclaso.com" rel="nofollow">here</a> is a link to the website.</p>