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

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

matplotlib support failed in PyCharm on OSX -

python - Matplotlib: TypeError: 'AxesSubplot' object is not callable -