title: jquery 3 document ready is blocking turbolinks from executing
body: <p>I was using jQuery 1.12.4 so far and everything was ok, I had something like this : </p>
  
  <pre><code>$(document).ready -&gt;
  
      console.log "document is ready yaay!"
  
      start = -&gt;
  
          alert "Hello world!!!"
  
      document.addEventListener('turbolinks:load', start)
  </code></pre>
  
  <p>I upgraded to Rails 5.1 yesterday and decided to add and upgrade my jQuery as well (yep I still need it) so I installed jQuery 3 using yarn, but the same code above doesn't get executed, at least the turbolinks part (the console.log is executed every time the document get loaded but the "start" method does not)</p>
  
  <p>I removed the <code>$(document).ready -&gt;</code> and the code start working as expected !!!</p>
  
  <p><em>To make sure I also removed jQuery 3 and installed jQuery 1.12 back and it worked! even with <code>$(document).ready -&gt;</code></em></p>
  
  <p>Why this is happening ? </p>