Execute JS code (using jQuery) with and without Turbolinks -


i'd execute code (using jquery) when page loading. want work , without turbolinks.

for turbolinks, code following :

document.addeventlistener("turbolinks:load", function() {   // ... }) 

what have modify make work without turbolinks too?

thank you


Comments

Popular posts from this blog

many to many - Django Rest Framework ManyToMany filter multiple values -

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

Java Entity Manager - JSON reader was expecting a value but found 'db' -