weathertopper / family-photo-project

0 stars 0 forks source link

Triggering JS on page load EVERY TIME #30

Closed weathertopper closed 7 years ago

weathertopper commented 7 years ago

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