NOT just the initial load. I threw a bunch of stuff at this last week but nothing worked. I even downloaded some TurboLink/JQuery hybrid. But I haven't tried this...
http://stackoverflow.com/questions/36110789/rails-5-how-to-use-document-ready-with-turbo-links
In the comments...
" For me, $(document).on('turbolinks:load', ...) did not work; I had to use document.addEventListener('turbolinks:load', ... as described in the Turbolinks README. – bovender Jan 31 at 5:07"
NOT just the initial load. I threw a bunch of stuff at this last week but nothing worked. I even downloaded some TurboLink/JQuery hybrid. But I haven't tried this... http://stackoverflow.com/questions/36110789/rails-5-how-to-use-document-ready-with-turbo-links In the comments... " For me, $(document).on('turbolinks:load', ...) did not work; I had to use document.addEventListener('turbolinks:load', ... as described in the Turbolinks README. – bovender Jan 31 at 5:07"
^^Try that