console.log('messages-list script loaded');
document.addEventListener('turbolinks:load', function(){
console.log('turbolinks:load');
});
I'm trying to listen to this event but it is not firing in my script.js. If I paste this in console of chrome browser then it works. Only first console.log statement works.