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

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

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -